From af3eabbbc2dc6a92e9ef422af998f6f9e52e1bb7 Mon Sep 17 00:00:00 2001 From: Lucio Maranta Date: Thu, 22 Aug 2019 12:44:37 +0200 Subject: [PATCH] Fix reload page on file editor --- Client/Browser_Tools/BrowserJSObject.cs | 1 + .../src/modules/base-components/modal-load-program.ts | 5 ++--- .../src/modules/base-components/modal-load-program.vue | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Client/Browser_Tools/BrowserJSObject.cs b/Client/Browser_Tools/BrowserJSObject.cs index f239cef0..ff2e7daf 100644 --- a/Client/Browser_Tools/BrowserJSObject.cs +++ b/Client/Browser_Tools/BrowserJSObject.cs @@ -793,6 +793,7 @@ namespace Active_Client.Browser_Tools #endregion FILESYSTEM_METHODS /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + #region RECALL_METHOD private static void CallJSFunction(CfrV8Value functionIstance, string arguments, CfrV8Context context) diff --git a/Step/wwwroot/src/modules/base-components/modal-load-program.ts b/Step/wwwroot/src/modules/base-components/modal-load-program.ts index 03d2b7ce..ef26e267 100644 --- a/Step/wwwroot/src/modules/base-components/modal-load-program.ts +++ b/Step/wwwroot/src/modules/base-components/modal-load-program.ts @@ -113,6 +113,7 @@ export default class ModalLoadProgram extends Vue { this.currentFilterSecond = ""; } this.calcBreadCrumb(absolutePath); + this.cleanFileWatcher(); } fillArray(destinationArray: Array, sourceArray: Array) { @@ -244,7 +245,7 @@ export default class ModalLoadProgram extends Vue { await awaiter(fileService.getFileInfo(str))); this.currentPath = this.selectedFile.AbsolutePath.substring(0,this.selectedFile.AbsolutePath.lastIndexOf("\\")); - + this.cleanFileWatcher(); } beforeMount() { @@ -319,8 +320,6 @@ export default class ModalLoadProgram extends Vue { this.uploadAllFileInFolder = !this.uploadAllFileInFolder; } - - async cleanTempfolder(){ await awaiter(fileService.cleanTempFolder()); await awaiter (fileService.isTempFolderOK().then(response => { diff --git a/Step/wwwroot/src/modules/base-components/modal-load-program.vue b/Step/wwwroot/src/modules/base-components/modal-load-program.vue index 4ab978bb..9878986e 100644 --- a/Step/wwwroot/src/modules/base-components/modal-load-program.vue +++ b/Step/wwwroot/src/modules/base-components/modal-load-program.vue @@ -103,11 +103,10 @@ -
-
+
+
-