diff --git a/Projects/Foundations/Schemas/App-Schema/product-definition.json b/Projects/Foundations/Schemas/App-Schema/product-definition.json index 4efc22367..ccb455e73 100644 --- a/Projects/Foundations/Schemas/App-Schema/product-definition.json +++ b/Projects/Foundations/Schemas/App-Schema/product-definition.json @@ -9,6 +9,17 @@ "dontShowAtFullscreen": true, "actionFunction": "uiObject.configEditor.activate" }, + { + "action": "Install Product", + "label": "Install Product", + "askConfirmation": true, + "confirmationLabel": "Confirm to Proceed", + "workDoneLabel": "Done", + "relatedUiObject": "Product Definition", + "actionFunction": "payload.executeAction", + "relatedUiObjectProject": "Foundations" + }, + { "action": "Add UI Object", "disableIfPropertyIsDefined": true, diff --git a/Projects/Foundations/UI/Function-Libraries/ActionSwitch.js b/Projects/Foundations/UI/Function-Libraries/ActionSwitch.js index 2bff88d79..bf8f2f205 100644 --- a/Projects/Foundations/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Foundations/UI/Function-Libraries/ActionSwitch.js @@ -446,6 +446,11 @@ function newFoundationsActionSwitch() { UI.projects.foundations.spaces.floatingSpace.moveFloatingObject(action.node.payload.position) } break + case 'Install Product': + { + UI.projects.foundations.functionLibraries.productFunctions.installProduct(action.node, action.rootNodes) + } + break default: { console.log("[WARN] Action sent to Foundations Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) diff --git a/Projects/ProjectsSchema.json b/Projects/ProjectsSchema.json index c1d5710cf..69f7e03c6 100644 --- a/Projects/ProjectsSchema.json +++ b/Projects/ProjectsSchema.json @@ -371,6 +371,11 @@ "propertyName": "cryptoEcosystemFunctions", "functionName": "newFoundationsFunctionLibraryCryptoEcosystemFunctions" }, + { + "name": "Product Functions", + "propertyName": "productFunctions", + "functionName": "newFoundationsFunctionLibraryProductFunctions" + }, { "name": "Data Storage Functions", "propertyName": "dataStorageFunctions",