From e75c45293da76190d0ecdb1285fee759fb5c9d41 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 9 Jun 2021 13:57:09 +0200 Subject: [PATCH] logs removed --- Client/httpInterface.js | 3 --- Projects/Governance/UI/Function-Libraries/Assets.js | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index de7aed21e..2aa8e5b07 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -1818,10 +1818,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE let pathAndNames = [] for (let i = 0; i < files.length; i++) { let file = files[i] - console.log('file', file) - console.log('lastFolder', lastFolder) let pathName = file.substring(file.indexOf(lastFolder) + lastFolder.length, file.length) - console.log('pathName', pathName) pathName = pathName.substring(1, pathName.length) pathAndNames.push(pathName) } diff --git a/Projects/Governance/UI/Function-Libraries/Assets.js b/Projects/Governance/UI/Function-Libraries/Assets.js index caadee10b..14261487a 100644 --- a/Projects/Governance/UI/Function-Libraries/Assets.js +++ b/Projects/Governance/UI/Function-Libraries/Assets.js @@ -15,7 +15,7 @@ function newGovernanceFunctionLibraryAssets() { node.payload.uiObject.setErrorMessage("folderPath Config Property undefined.") return } - + node.payload.uiObject.setInfoMessage("Hold on while we install all the assets inside the this path: " + folderPath + ". This might take a minute or two.") httpRequest(undefined, 'DirContent' + '/' + folderPath, onResponse) function onResponse(err, data) { @@ -24,11 +24,15 @@ function newGovernanceFunctionLibraryAssets() { return } let filePathArray = JSON.parse(data) + let totalAssets = 0 for (let i = 0; i < filePathArray.length; i++) { let filePath = filePathArray[i] + if (filePath.indexOf('node_modules') >= 0) { continue } let foldersArray = removeFirstFromArray(filePath.split('\\')) + totalAssets++ createNodesFromPath(node, foldersArray) } + node.payload.uiObject.setInfoMessage("A total of : " + totalAssets + " assets have been installed.") } function removeFirstFromArray(array) {