refactor(ui): better button, tab caomponents

This commit is contained in:
liyasthomas
2021-08-22 12:58:43 +05:30
parent 22e73a4d83
commit 1bea0a42d7
18 changed files with 56 additions and 75 deletions

View File

@@ -49,24 +49,15 @@
$refs.options.tippy().hide()
"
/>
<span
v-tippy="{ theme: 'tooltip' }"
:title="
team.myRole === 'OWNER' && team.ownersCount == 1
? $t('team.exit_disabled')
: ''
<SmartItem
v-if="!(team.myRole === 'OWNER' && team.ownersCount == 1)"
icon="remove"
:label="$t('team.exit')"
@click.native="
exitTeam()
$refs.options.tippy().hide()
"
>
<SmartItem
:disabled="team.myRole === 'OWNER' && team.ownersCount == 1"
icon="remove"
:label="$t('team.exit')"
@click.native="
exitTeam()
$refs.options.tippy().hide()
"
/>
</span>
/>
</tippy>
</span>
</div>