Browse Source

fix: fixed issue where removing a playlist didn't close the edit modal

Kristian Vos 5 years ago
parent
commit
fb9315eef3
1 changed files with 4 additions and 1 deletions
  1. 4 1
      frontend/components/Modals/Playlists/Edit.vue

+ 4 - 1
frontend/components/Modals/Playlists/Edit.vue

@@ -344,7 +344,10 @@ export default {
 			this.socket.emit("playlists.remove", this.playlist._id, res => {
 				new Toast({ content: res.message, timeout: 3000 });
 				if (res.status === "success") {
-					this.closeModal();
+					this.closeModal({
+						sector: "station",
+						modal: "editPlaylist"
+					});
 				}
 			});
 		},