Edit Song Description (#1088)
* add editPlayListDescription * add feature to change playlist description * add queue history styling * add queue features * replay styling update * change queue and history headers * fixed the duration css not working
This commit is contained in:
parent
7458fb944f
commit
ccd94f0702
6 changed files with 105 additions and 12 deletions
|
@ -1350,6 +1350,21 @@ const app = new Vue({
|
|||
self.refreshPlaylists(false, false)
|
||||
})
|
||||
},
|
||||
async editPlaylistDescription(id, name = app.getLz('term.newPlaylist')) {
|
||||
let self = this
|
||||
this.mk.api.v3.music(
|
||||
`/v1/me/library/playlists/${id}`, {}, {
|
||||
fetchOptions: {
|
||||
method: "PATCH",
|
||||
body: JSON.stringify({
|
||||
attributes: { description: name }
|
||||
})
|
||||
}
|
||||
}
|
||||
).then(res => {
|
||||
self.refreshPlaylists(false, false)
|
||||
})
|
||||
},
|
||||
copyToClipboard(str) {
|
||||
// if (navigator.userAgent.includes('Darwin') || navigator.appVersion.indexOf("Mac") != -1) {
|
||||
// this.darwinShare(str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue