Added file not found notification
This commit is contained in:
@ -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);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user