mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: add "Show Playlists by Apple Music" to settings page
This commit is contained in:
parent
defb8fb565
commit
5ce9c3689a
2 changed files with 32 additions and 1 deletions
|
|
@ -73,6 +73,22 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="left">
|
||||
<div class="title"> Show Playlists by Apple Music</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="toggle">
|
||||
<input
|
||||
type="checkbox"
|
||||
name="show-playlists-by-apple-music"
|
||||
id="show-playlists-by-apple-music"
|
||||
v-model="showPlaylistsByAppleMusic"
|
||||
/>
|
||||
<label for="show-playlists-by-apple-music"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -113,6 +129,18 @@ export default {
|
|||
});
|
||||
},
|
||||
},
|
||||
showPlaylistsByAppleMusic: {
|
||||
get() {
|
||||
if (this.settings.showPlaylistsByAppleMusic === undefined) return true;
|
||||
return this.settings.showPlaylistsByAppleMusic;
|
||||
},
|
||||
set(value) {
|
||||
this.$store.commit("updateSettings", {
|
||||
key: "showPlaylistsByAppleMusic",
|
||||
value,
|
||||
});
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
logout() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue