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:
Jason Chen 2022-05-31 14:54:02 -07:00 committed by GitHub
parent 7458fb944f
commit ccd94f0702
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 105 additions and 12 deletions

View file

@ -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)