[web-src] Only show Spotify filter if Spotify is enabled
This commit is contained in:
parent
7dccee9407
commit
048b245155
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue