Преглед на файлове

bugfix: #272 if the dialog is already open, close it (#294)

James Read преди 2 години
родител
ревизия
ceb215a6dc
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      webui.dev/js/ExecutionDialog.js

+ 4 - 0
webui.dev/js/ExecutionDialog.js

@@ -75,6 +75,10 @@ export class ExecutionDialog {
       this.executionTick()
       this.executionTick()
     }, 1000)
     }, 1000)
 
 
+    if (this.dlg.open) {
+      this.dlg.close()
+    }
+
     this.dlg.showModal()
     this.dlg.showModal()
   }
   }