tooltip for room lock

This commit is contained in:
Craig 2020-02-12 00:02:51 +00:00
parent d29a64ac86
commit 880f151185

View File

@ -9,6 +9,13 @@
<i <i
:class="[{ disabled: !admin }, { 'fa-lock-open': !locked }, { 'fa-lock': locked }, 'fas', 'lock']" :class="[{ disabled: !admin }, { 'fa-lock-open': !locked }, { 'fa-lock': locked }, 'fas', 'lock']"
@click="toggleLock" @click="toggleLock"
v-tooltip="{
content: admin ? (locked ? 'Unlock Room' : 'Lock Room') : locked ? 'Room Unlocked' : 'Room Locked',
placement: 'bottom',
offset: 5,
boundariesElement: 'body',
delay: { show: 300, hide: 100 },
}"
/> />
</li> </li>
<li> <li>