[web-src] Only show Spotify filter if Spotify is enabled

This commit is contained in:
chme 2020-10-11 09:01:34 +02:00
parent 7dccee9407
commit 048b245155
2 changed files with 10 additions and 2 deletions

View File

@ -16,7 +16,7 @@
</div>
<p class="help">If active, hides artists that only appear on singles or playlists.</p>
</div>
<div class="field">
<div class="field" v-if="spotify_enabled">
<div class="control">
<input id="switchHideSpotify" type="checkbox" name="switchHideSpotify" class="switch" v-model="hide_spotify">
<label for="switchHideSpotify">Hide artists from Spotify</label>
@ -89,6 +89,10 @@ export default {
})
},
spotify_enabled () {
return this.$store.state.spotify.webapi_token_valid
},
hide_singles: {
get () {
return this.$store.state.hide_singles

View File

@ -16,7 +16,7 @@
</div>
<p class="help">If active, hides artists that only appear on singles or playlists.</p>
</div>
<div class="field">
<div class="field" v-if="spotify_enabled">
<div class="control">
<input id="switchHideSpotify" type="checkbox" name="switchHideSpotify" class="switch" v-model="hide_spotify">
<label for="switchHideSpotify">Hide artists from Spotify</label>
@ -86,6 +86,10 @@ export default {
})
},
spotify_enabled () {
return this.$store.state.spotify.webapi_token_valid
},
hide_singles: {
get () {
return this.$store.state.hide_singles