diff --git a/changes/changelog.d/304.bugfix b/changes/changelog.d/304.bugfix new file mode 100644 index 000000000..477297a18 --- /dev/null +++ b/changes/changelog.d/304.bugfix @@ -0,0 +1 @@ +Fixed persistent message in playlist modal (#304) diff --git a/front/src/components/playlists/PlaylistModal.vue b/front/src/components/playlists/PlaylistModal.vue index 668dbf75e..a5a7e9ea0 100644 --- a/front/src/components/playlists/PlaylistModal.vue +++ b/front/src/components/playlists/PlaylistModal.vue @@ -7,15 +7,15 @@
- +
We cannot add the track to a playlist
@@ -82,6 +82,7 @@ export default { }, data () { return { + formKey: String(new Date()), errors: [] } }, @@ -124,6 +125,9 @@ export default { watch: { '$store.state.route.path' () { this.$store.commit('playlists/showModal', false) + }, + '$store.state.playlists.showModal' () { + this.formKey = String(new Date()) } } }