correction de tous les bugs niveaux 1 (faibles)
This commit is contained in:
parent
b5bb8e7cc4
commit
f2ced83246
26 changed files with 53 additions and 38 deletions
|
|
@ -96,8 +96,6 @@ export class PlaylistListComponent implements OnInit
|
|||
// click sur update playlist
|
||||
onUpdatePlaylist(playlistToUpdate: PlaylistDB): void
|
||||
{
|
||||
console.log(playlistToUpdate);
|
||||
|
||||
const config = {
|
||||
data: {
|
||||
action: "update",
|
||||
|
|
@ -111,8 +109,6 @@ export class PlaylistListComponent implements OnInit
|
|||
.afterClosed()
|
||||
.subscribe(newName => {
|
||||
|
||||
console.log("nn:" + newName);
|
||||
|
||||
const config = { duration: 1500, panelClass: "custom-class" };
|
||||
if((newName === null) || (newName === undefined)) {
|
||||
this.snackBar.open("Opération annulée", "", config);
|
||||
|
|
@ -123,6 +119,8 @@ export class PlaylistListComponent implements OnInit
|
|||
index = this.tabPlaylist.findIndex( elt => (elt._id === playlistToUpdate._id));
|
||||
this.tabPlaylist[index].name = newName;
|
||||
this.snackBar.open(`La playlist '${playlistToUpdate.name}' a bien été mise à jour ✔`, "", config);
|
||||
this.eventEmitter.emit(this.tabPlaylist[index]);
|
||||
this.playlistFocusedOn = this.tabPlaylist[index]
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue