From 60aa98e721b8e402c17eb88033cad7fd3e9da8f6 Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Wed, 2 Dec 2020 14:59:28 +0100 Subject: [PATCH] Update new-template-dialog.component.ts --- .../new-template-dialog/new-template-dialog.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts b/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts index 13b74da5..274f9dd2 100644 --- a/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts +++ b/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts @@ -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',