Fixed issue where reopening file info dialog after editing metadata would show stale data

pull/657/head
Isaac Abadi 3 years ago
parent 55d4f746c3
commit adbe7f95d5

@ -9,7 +9,6 @@ import localeES from '@angular/common/locales/es';
import localeDE from '@angular/common/locales/de';
import localeZH from '@angular/common/locales/zh';
import localeNB from '@angular/common/locales/nb';
import { DatabaseFile, Playlist } from 'api-types';
registerLocaleData(localeGB);
registerLocaleData(localeFR);
@ -105,12 +104,16 @@ export class UnifiedFileCardComponent implements OnInit {
}
openFileInfoDialog() {
this.dialog.open(VideoInfoDialogComponent, {
const dialogRef = this.dialog.open(VideoInfoDialogComponent, {
data: {
file: this.file_obj,
},
minWidth: '50vw'
})
});
dialogRef.afterClosed().subscribe(() => {
this.file_obj = dialogRef.componentInstance.file;
});
}
emitEditPlaylist() {

Loading…
Cancel
Save