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