mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 06:48:09 +00:00
Update new-template-dialog.component.ts
This commit is contained in:
@ -349,7 +349,11 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
dialogRef.componentInstance.confirmationMessage = `This is not the correct file.
|
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?`;
|
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) => {
|
dialogRef.afterClosed().subscribe((answer: boolean) => {
|
||||||
if (answer) this.importImageFile(event);
|
if (answer) {
|
||||||
|
this.importImageFile(event)
|
||||||
|
} else {
|
||||||
|
this.uploaderImage.clearQueue();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.importImageFile(event);
|
this.importImageFile(event);
|
||||||
|
Reference in New Issue
Block a user