Explorar el Código

Added temporary fix to update included playlists in playlist mode playlists sidebar

Kristian Vos hace 4 años
padre
commit
52b301b864
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      frontend/src/pages/Station/components/Sidebar/MyPlaylists.vue

+ 5 - 0
frontend/src/pages/Station/components/Sidebar/MyPlaylists.vue

@@ -174,6 +174,7 @@ export default {
 							content: res.message,
 							timeout: 8000
 						});
+					this.station.includedPlaylists.push(id);
 					return new Toast({ content: res.message, timeout: 4000 });
 				}
 			);
@@ -189,6 +190,10 @@ export default {
 							content: res.message,
 							timeout: 8000
 						});
+					this.station.includedPlaylists.splice(
+						this.station.includedPlaylists.indexOf(id),
+						1
+					);
 					return new Toast({ content: res.message, timeout: 4000 });
 				}
 			);