mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-09 03:24:13 +00:00
Update new-template-dialog.component.ts
This commit is contained in:
parent
c956bc84c8
commit
60aa98e721
@ -336,10 +336,12 @@ export class NewTemplateDialogComponent implements OnInit {
|
||||
}
|
||||
|
||||
importImage(event, imageName) {
|
||||
this.progressService.activate();
|
||||
this.computeChecksumMd5(event.target.files[0], false).then((output) => {
|
||||
let imageToInstall = this.applianceToInstall.images.filter(n => n.filename === imageName)[0];
|
||||
|
||||
if (imageToInstall.md5sum !== output) {
|
||||
this.progressService.deactivate();
|
||||
const dialogRef = this.dialog.open(InformationDialogComponent, {
|
||||
width: '400px',
|
||||
height: '200px',
|
||||
|
Loading…
x
Reference in New Issue
Block a user