mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-14 08:01:28 +03:00
Fixed issue where reopening file info dialog after editing metadata would show stale data
This commit is contained in:
@@ -9,7 +9,6 @@ import localeES from '@angular/common/locales/es';
|
|||||||
import localeDE from '@angular/common/locales/de';
|
import localeDE from '@angular/common/locales/de';
|
||||||
import localeZH from '@angular/common/locales/zh';
|
import localeZH from '@angular/common/locales/zh';
|
||||||
import localeNB from '@angular/common/locales/nb';
|
import localeNB from '@angular/common/locales/nb';
|
||||||
import { DatabaseFile, Playlist } from 'api-types';
|
|
||||||
|
|
||||||
registerLocaleData(localeGB);
|
registerLocaleData(localeGB);
|
||||||
registerLocaleData(localeFR);
|
registerLocaleData(localeFR);
|
||||||
@@ -105,12 +104,16 @@ export class UnifiedFileCardComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
openFileInfoDialog() {
|
openFileInfoDialog() {
|
||||||
this.dialog.open(VideoInfoDialogComponent, {
|
const dialogRef = this.dialog.open(VideoInfoDialogComponent, {
|
||||||
data: {
|
data: {
|
||||||
file: this.file_obj,
|
file: this.file_obj,
|
||||||
},
|
},
|
||||||
minWidth: '50vw'
|
minWidth: '50vw'
|
||||||
})
|
});
|
||||||
|
|
||||||
|
dialogRef.afterClosed().subscribe(() => {
|
||||||
|
this.file_obj = dialogRef.componentInstance.file;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
emitEditPlaylist() {
|
emitEditPlaylist() {
|
||||||
|
|||||||
Reference in New Issue
Block a user