From 01550df79d08c18207717797ff60b4404f2d2a36 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 30 Jun 2021 13:36:20 +0200 Subject: [PATCH] Finals details of saving plugins polished --- Client/httpInterface.js | 1 + Projects/Foundations/UI/Spaces/Design-Space/Workspace.js | 2 +- .../Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index ecf06a1e0..d972eedcf 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -1196,6 +1196,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE let fileContent = JSON.stringify(plugin, undefined, 4) const fs = require('fs') fs.writeFileSync(filePath + '/' + fileName + '.json', fileContent) + respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) } catch (err) { console.log('[ERROR] httpInterface -> SavePlugin -> Method call produced an error.') console.log('[ERROR] httpInterface -> SavePlugin -> err.stack = ' + err.stack) diff --git a/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js b/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js index 19690164c..01dfe34c6 100644 --- a/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js +++ b/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js @@ -274,7 +274,7 @@ function newWorkspace() { /* Lets check the result of the call through the http interface */ data = JSON.parse(data) if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result && data.result === GLOBAL.DEFAULT_OK_RESPONSE.result) { - pluginFile.payload.uiObject.setInfoMessage('Plugin Saved.') + pluginFile.payload.uiObject.setInfoMessage('Plugin Saved.', 250) return } console.log('[ERROR] Saving Plugin File: ' + JSON.stringify(data)) diff --git a/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json b/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json index 0220b4f38..528b5bf01 100644 --- a/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json +++ b/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json @@ -18,7 +18,7 @@ "referralProgram": { "type": "Referral Program", "name": "New Referral Program", - "config": "{\n \"percentage\": 60\n}", + "config": "{\n \"percentage\": 80\n}", "project": "Governance", "userReferrers": [ {