mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-26 06:30:58 +03:00
Improved snackbar translations support
This commit is contained in:
@@ -53,9 +53,9 @@ export class CustomPlaylistsComponent implements OnInit {
|
||||
dialogRef.afterClosed().subscribe(result => {
|
||||
if (result) {
|
||||
this.getAllPlaylists();
|
||||
this.postsService.openSnackBar('Successfully created playlist!', '');
|
||||
this.postsService.openSnackBar($localize`Successfully created playlist!', '`);
|
||||
} else if (result === false) {
|
||||
this.postsService.openSnackBar('ERROR: failed to create playlist!', '');
|
||||
this.postsService.openSnackBar($localize`ERROR: failed to create playlist!', '`);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -96,7 +96,7 @@ export class CustomPlaylistsComponent implements OnInit {
|
||||
this.postsService.removePlaylist(playlistID).subscribe(res => {
|
||||
if (res['success']) {
|
||||
this.playlists.splice(index, 1);
|
||||
this.postsService.openSnackBar('Playlist successfully removed.', '');
|
||||
this.postsService.openSnackBar($localize`Playlist successfully removed.', '`);
|
||||
}
|
||||
this.getAllPlaylists();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user