diff --git a/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js b/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js index 0b42737cc..e0e99082b 100644 --- a/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js +++ b/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js @@ -325,7 +325,7 @@ function newCircularMenuItem() { /* The first click ask for confirmation. */ if (temporaryStatus === STATUS_NO_ACTION_TAKEN_YET) { - setStatus(thisObject.confirmationLabel, UI_COLOR.GOLDEN_ORANGE, 100, STATUS_WAITING_CONFIRMATION) + setStatus(thisObject.confirmationLabel, UI_COLOR.GOLDEN_ORANGE, 250, STATUS_WAITING_CONFIRMATION) return } /* A Click during confirmation executes the pre-defined action. */ diff --git a/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js b/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js index 48106de7e..0cb3f4a2f 100644 --- a/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js +++ b/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js @@ -24,7 +24,6 @@ function newGovernanceFunctionLibraryProfileConstructor() { } createNewAccount() - signUserProfileData() function createNewAccount() { let params = { @@ -52,15 +51,11 @@ function newGovernanceFunctionLibraryProfileConstructor() { return } - UI.projects.foundations.utilities.nodeConfig.saveConfigProperty(node.payload, 'address', response.address) - UI.projects.foundations.utilities.nodeConfig.saveConfigProperty(node.payload, 'privateKey', response.privateKey) + signUserProfileData(response.address, response.privateKey) } } - function signUserProfileData() { - - let privateKey = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(node.payload, 'privateKey') - if (privateKey === undefined || privateKey === "") { return } + function signUserProfileData(address, privateKey) { let request = { url: 'WEB3', @@ -89,6 +84,8 @@ function newGovernanceFunctionLibraryProfileConstructor() { return } UI.projects.foundations.utilities.nodeConfig.saveConfigProperty(node.payload.referenceParent.payload, 'signature', response.signature) + UI.projects.foundations.utilities.nodeConfig.saveConfigProperty(node.payload, 'address', address) + UI.projects.foundations.utilities.nodeConfig.saveConfigProperty(node.payload, 'privateKey', privateKey) node.payload.uiObject.setInfoMessage("Profile Account has been successfully created.") }