Skip to content

Instantly share code, notes, and snippets.

@Imperat
Last active February 24, 2019 16:14
Show Gist options
  • Save Imperat/d492c23ee416f368ebcc1182eb726d55 to your computer and use it in GitHub Desktop.
Save Imperat/d492c23ee416f368ebcc1182eb726d55 to your computer and use it in GitHub Desktop.
<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