diff --git a/pages/player.vue b/pages/player.vue
index 40ce248f..e343d078 100644
--- a/pages/player.vue
+++ b/pages/player.vue
@@ -265,6 +265,9 @@
+
+
+
+
+ Delete program from {{ listDate }}
+
@@ -513,8 +526,18 @@ export default {
}
)
},
+ async deletePlaylist (playlistDate) {
+ this.$store.commit('playlist/UPDATE_PLAYLIST', [])
+ const date = playlistDate.split('-')
+ const playlistPath = `${this.configPlayout.playlist.path}/${date[0]}/${date[1]}/${playlistDate}.json`
+
+ await this.$axios.post('api/player/playlist/', { data: { delete: playlistPath } })
+ },
showCopyModal () {
this.$root.$emit('bv::show::modal', 'copy-modal')
+ },
+ showDeleteModal () {
+ this.$root.$emit('bv::show::modal', 'delete-modal')
}
}
}