mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-21 02:01:19 +00:00
Update new-template-dialog.component.ts
This commit is contained in:
parent
5668016ef5
commit
c956bc84c8
@ -349,7 +349,11 @@ export class NewTemplateDialogComponent implements OnInit {
|
||||
dialogRef.componentInstance.confirmationMessage = `This is not the correct file.
|
||||
The MD5 sum is ${output} and should be ${imageToInstall.md5sum}. Do you want to accept it at your own risks?`;
|
||||
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
||||
if (answer) this.importImageFile(event);
|
||||
if (answer) {
|
||||
this.importImageFile(event)
|
||||
} else {
|
||||
this.uploaderImage.clearQueue();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.importImageFile(event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user