mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Add active class on previousPasteMenu
This commit is contained in:
parent
2abbab5305
commit
e667e1f947
@ -46,10 +46,10 @@
|
|||||||
<li class="submenu"><a href="#" @click.prevent="openPreviousPastesMenu = !openPreviousPastesMenu">Previous
|
<li class="submenu"><a href="#" @click.prevent="openPreviousPastesMenu = !openPreviousPastesMenu">Previous
|
||||||
pastes v</a>
|
pastes v</a>
|
||||||
<ul class="previous-pastes" id="topmenu" v-if="openPreviousPastesMenu">
|
<ul class="previous-pastes" id="topmenu" v-if="openPreviousPastesMenu">
|
||||||
<li class="item active" v-if="previousPastes.length === 0">
|
<li class="item" v-if="previousPastes.length === 0">
|
||||||
<a href="#">No paste yet</a>
|
<a href="#">No paste yet</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="item active" v-for="paste in previousPastes">
|
<li :class="{item: true, active: paste.isCurrent}" v-for="paste in previousPastes">
|
||||||
<a :href="paste.link" @click="forceLoad(paste.link)">{% paste.displayDate %}</a>
|
<a :href="paste.link" @click="forceLoad(paste.link)">{% paste.displayDate %}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user