Merge pull request #932 from pgalhardo/develop

Album view: hide tab controls when only one tab exists
This commit is contained in:
cryptofyre 2022-04-24 23:10:30 -05:00 committed by GitHub
commit c9e2d1b3a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@
</div> </div>
<div class="playlist-body scrollbody"> <div class="playlist-body scrollbody">
<b-tabs pills class="track-pills pilldim" align="center" content-class="mt-3"> <b-tabs pills class="track-pills pilldim" align="center" content-class="mt-3" :nav-wrapper-class="navClass(data)">
<b-tab :title="$root.getLz('term.tracks')"> <b-tab :title="$root.getLz('term.tracks')">
<div @wheel="minClass(true)" @scroll="minClass(true)"> <div @wheel="minClass(true)" @scroll="minClass(true)">
<div class=""> <div class="">
@ -713,6 +713,10 @@
}) })
},
navClass(data) {
if (data && typeof data.views != "undefined") return "";
return "d-none";
} }
} }