Commit da9145a9 authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

FEAT: implement delete of playlist

parent 4604409b
...@@ -579,8 +579,18 @@ export default { ...@@ -579,8 +579,18 @@ export default {
}, },
deletePlaylist: function (id) { deletePlaylist: function (id) {
this.notYetImplemented() var uri = process.env.VUE_APP_API_TANK + 'shows/' + this.shows[this.currentShow].slug + '/playlists/' + id
return id // TODO: add mechanism to indicate the running delete request in the files table
axios.delete(uri, {
withCredentials: true,
headers: { 'Authorization': 'Bearer ' + this.$parent.user.access_token },
}).then(
this.fetchPlaylists(this.shows[this.currentShow].slug)
).catch(error => {
console.log('Error:')
console.log(error)
alert('Error: could not delete playlist. See console log for details.')
})
}, },
editPlaylist: function (id) { editPlaylist: function (id) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment