Added file not found notification

This commit is contained in:
2024-02-18 11:29:24 +01:00
parent 690fe5289f
commit 2fdc1d3f48
2 changed files with 26 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import {RouterLink} from "@angular/router";
export class DownloadComponent {
@ViewChild('download_not_possible') download_not_possible: ElementRef<HTMLDialogElement> | undefined;
@ViewChild('file_not_found_modal') file_not_found_modal: ElementRef<HTMLDialogElement> | undefined;
inputFileId: string = "2402183";
fileId: string = "";
@ -114,6 +115,7 @@ export class DownloadComponent {
this.processDownloadInfo();
})
.catch(error => {
this.file_not_found_modal?.nativeElement.showModal();
console.error('Error during download info request:', error);
});
}