mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
tooltip for room lock
This commit is contained in:
parent
d29a64ac86
commit
880f151185
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user