From a38f64852fdf0c37017674684ff6fb5c4b94e2ff Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Tue, 20 Mar 2018 23:41:15 +0100 Subject: [PATCH] Can now delete playlist --- .../components/playlists/PlaylistModal.vue | 108 ++++++++++-------- front/src/views/playlists/Detail.vue | 32 +++++- 2 files changed, 91 insertions(+), 49 deletions(-) diff --git a/front/src/components/playlists/PlaylistModal.vue b/front/src/components/playlists/PlaylistModal.vue index b470eb5ce..5fdf585df 100644 --- a/front/src/components/playlists/PlaylistModal.vue +++ b/front/src/components/playlists/PlaylistModal.vue @@ -1,53 +1,66 @@ @@ -100,6 +113,11 @@ export default { p.reverse() return p } + }, + watch: { + '$store.state.route.path' () { + this.$store.commit('playlists/showModal', false) + } } } diff --git a/front/src/views/playlists/Detail.vue b/front/src/views/playlists/Detail.vue index fc27b7126..1f3caa494 100644 --- a/front/src/views/playlists/Detail.vue +++ b/front/src/views/playlists/Detail.vue @@ -1,6 +1,9 @@