Fixed artist tab active tab indicator

This commit is contained in:
RemixDev 2020-05-06 10:22:46 +02:00
parent 53878a440a
commit 31b1aa01e2
2 changed files with 2 additions and 8 deletions

View File

@ -959,7 +959,7 @@ <h1>{{ title }}</h1>
<div class="tab"> <div class="tab">
<template v-for="(item, name, index) in body"> <template v-for="(item, name, index) in body">
<button :class="'selective' + (name==currentTab ? 'active' : '')" :href="'#artist_' + name" <button :class="'selective' + (name==currentTab ? ' active' : '')" :href="'#artist_' + name"
@click="changeTab(name)">{{ name }}</button> @click="changeTab(name)">{{ name }}</button>
</template> </template>
</div> </div>
@ -1102,4 +1102,4 @@ <h2 class="inline-flex"><span v-if="metadata">{{ metadata }}</span><span class="
<script type="module" src="/public/js/app.js"></script> <script type="module" src="/public/js/app.js"></script>
</html> </html>

View File

@ -37,12 +37,6 @@ const ArtistTab = new Vue({
openQualityModal(e) { openQualityModal(e) {
QualityModal.open(e.currentTarget.dataset.link) QualityModal.open(e.currentTarget.dataset.link)
}, },
moreInfo(url, e) {
if (e) {
e.preventDefault()
}
showTrackListSelective(url, true)
},
sortBy(key) { sortBy(key) {
if (key == this.sortKey) { if (key == this.sortKey) {
this.sortOrder = this.sortOrder == 'asc' ? 'desc' : 'asc' this.sortOrder = this.sortOrder == 'asc' ? 'desc' : 'asc'