1
0
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:
ksamuel 2020-08-13 18:23:11 +02:00
parent 2abbab5305
commit e667e1f947

View File

@ -46,10 +46,10 @@
<li class="submenu"><a href="#" @click.prevent="openPreviousPastesMenu = !openPreviousPastesMenu">Previous
pastes v</a>
<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>
</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>
</li>
</ul>