toast error if not owner of list

This commit is contained in:
Gamebrary 2021-02-03 15:41:58 -07:00
parent 7ffbe6b909
commit e9465e0b72

View file

@ -36,11 +36,19 @@
</p>
<list-settings
v-if="user"
v-if="user && user.uid === board.owner"
:list="list"
:list-index="listIndex"
/>
<b-button
v-else-if="user.uid !== board.owner"
@click="$bvToast.toast('No write access')"
:variant="nightMode ? 'dark' : 'transparent'"
>
<i class="fas fa-caret-down fa-fw" aria-hidden />
</b-button>
<b-button
v-else
v-b-modal:authModal