mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-24 05:30:57 +03:00
Improved snackbar translations support
This commit is contained in:
@@ -39,7 +39,7 @@ export class CookiesUploaderDialogComponent implements OnInit {
|
||||
this.uploading = false;
|
||||
if (res['success']) {
|
||||
this.uploaded = true;
|
||||
this.postsService.openSnackBar('Cookies successfully uploaded!');
|
||||
this.postsService.openSnackBar($localize`Cookies successfully uploaded!`);
|
||||
}
|
||||
}, err => {
|
||||
this.uploading = false;
|
||||
|
||||
@@ -36,14 +36,14 @@ export class RestoreDbDialogComponent implements OnInit {
|
||||
this.postsService.restoreDBBackup(this.selected_backup[0]).subscribe(res => {
|
||||
this.restoring = false;
|
||||
if (res['success']) {
|
||||
this.postsService.openSnackBar('Database successfully restored!');
|
||||
this.postsService.openSnackBar($localize`Database successfully restored!`);
|
||||
this.dialogRef.close();
|
||||
} else {
|
||||
this.postsService.openSnackBar('Failed to restore database! See logs for more info.');
|
||||
this.postsService.openSnackBar($localize`Failed to restore database! See logs for more info.`);
|
||||
}
|
||||
}, err => {
|
||||
this.restoring = false;
|
||||
this.postsService.openSnackBar('Failed to restore database! See browser console for more info.');
|
||||
this.postsService.openSnackBar($localize`Failed to restore database! See browser console for more info.`);
|
||||
console.error(err);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user