mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-20 11:41:00 +03:00
Improved snackbar translations support
This commit is contained in:
@@ -147,7 +147,7 @@ export class PlayerComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
this.postsService.getFile(this.uid, this.uuid).subscribe(res => {
|
||||
this.db_file = res['file'];
|
||||
if (!this.db_file) {
|
||||
this.postsService.openSnackBar('Failed to get file information from the server.', 'Dismiss');
|
||||
this.postsService.openSnackBar($localize`Failed to get file information from the server.', 'Dismiss`);
|
||||
return;
|
||||
}
|
||||
this.postsService.incrementViewCount(this.db_file['uid'], null, this.uuid).subscribe(() => undefined, err => {
|
||||
@@ -183,10 +183,10 @@ export class PlayerComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
this.show_player = true;
|
||||
this.parseFileNames();
|
||||
} else {
|
||||
this.postsService.openSnackBar('Failed to load playlist!', '');
|
||||
this.postsService.openSnackBar($localize`Failed to load playlist!', '`);
|
||||
}
|
||||
}, () => {
|
||||
this.postsService.openSnackBar('Failed to load playlist!', '');
|
||||
this.postsService.openSnackBar($localize`Failed to load playlist!', '`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user