Last active
February 24, 2019 16:14
-
-
Save Imperat/d492c23ee416f368ebcc1182eb726d55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<my-time-input v-if="userHasPermission('team.trainingTime', VISIBLE)" | |
label="Next Training Time" | |
:disabled="isNextTimeDisabled" /> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'football-team-form', | |
computed: { | |
isNextTraningTimeDisabled() { | |
return !hasNextTraining || !userHasPermission('team.traningTime', EDITABLE); | |
}, | |
}, | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment