mirror of
https://github.com/owntone/owntone-server.git
synced 2025-12-02 06:07:52 -05:00
[web-src] Only show Spotify filter if Spotify is enabled
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p class="help">If active, hides artists that only appear on singles or playlists.</p>
|
<p class="help">If active, hides artists that only appear on singles or playlists.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field" v-if="spotify_enabled">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input id="switchHideSpotify" type="checkbox" name="switchHideSpotify" class="switch" v-model="hide_spotify">
|
<input id="switchHideSpotify" type="checkbox" name="switchHideSpotify" class="switch" v-model="hide_spotify">
|
||||||
<label for="switchHideSpotify">Hide artists from Spotify</label>
|
<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: {
|
hide_singles: {
|
||||||
get () {
|
get () {
|
||||||
return this.$store.state.hide_singles
|
return this.$store.state.hide_singles
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p class="help">If active, hides artists that only appear on singles or playlists.</p>
|
<p class="help">If active, hides artists that only appear on singles or playlists.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field" v-if="spotify_enabled">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input id="switchHideSpotify" type="checkbox" name="switchHideSpotify" class="switch" v-model="hide_spotify">
|
<input id="switchHideSpotify" type="checkbox" name="switchHideSpotify" class="switch" v-model="hide_spotify">
|
||||||
<label for="switchHideSpotify">Hide artists from Spotify</label>
|
<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: {
|
hide_singles: {
|
||||||
get () {
|
get () {
|
||||||
return this.$store.state.hide_singles
|
return this.$store.state.hide_singles
|
||||||
|
|||||||
Reference in New Issue
Block a user