fixes and refactor

This commit is contained in:
Liyas Thomas
2021-05-14 05:50:17 +00:00
committed by GitHub
parent 2b8cda40a2
commit 8f09c82763
13 changed files with 107 additions and 87 deletions

View File

@@ -32,13 +32,12 @@
class="icon"
@click="exitTeam"
v-close-popover
:disabled="!(team.myRole === 'OWNER' && team.ownersCount == 1)"
:disabled="team.myRole === 'OWNER' && team.ownersCount == 1"
>
<i class="material-icons">remove</i>
<div
v-tooltip.left="{
content:
team.myRole === 'OWNER' && team.ownersCount == 1 ? null : $t('disable_exit'),
content: team.myRole === 'OWNER' && team.ownersCount == 1 ? $t('disable_exit') : '',
}"
>
<span>{{ $t("exit") }}</span>