Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
dashboard
Commits
da9145a9
Commit
da9145a9
authored
May 14, 2019
by
jackie / Andrea Ida Malkah Klaura
Browse files
FEAT: implement delete of playlist
parent
4604409b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/FileManager.vue
View file @
da9145a9
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment