Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -579,8 +579,18 @@ export default {
},
deletePlaylist: function (id) {
this.notYetImplemented()
return id
var uri = process.env.VUE_APP_API_TANK + 'shows/' + this.shows[this.currentShow].slug + '/playlists/' + 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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment