mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-14 06:41:29 +03:00
Improved snackbar translations support
This commit is contained in:
@@ -297,13 +297,13 @@ export class RecentVideosComponent implements OnInit {
|
||||
deleteNormalFile(file, blacklistMode = false) {
|
||||
this.postsService.deleteFile(file.uid, blacklistMode).subscribe(result => {
|
||||
if (result) {
|
||||
this.postsService.openSnackBar('Delete success!', 'OK.');
|
||||
this.postsService.openSnackBar($localize`Delete success!', 'OK.`);
|
||||
this.removeFileCard(file);
|
||||
} else {
|
||||
this.postsService.openSnackBar('Delete failed!', 'OK.');
|
||||
this.postsService.openSnackBar($localize`Delete failed!', 'OK.`);
|
||||
}
|
||||
}, err => {
|
||||
this.postsService.openSnackBar('Delete failed!', 'OK.');
|
||||
this.postsService.openSnackBar($localize`Delete failed!', 'OK.`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user