Script to Unistall a Market

This commit is contained in:
Luis Fernando Molina committed 2020-02-28 16:06:37 +01:00
1 parent 3a8a5f46f5
commit 18ec91c2d9
4 files changed
+37 -27

No files matched your search

@@ -5,7 +5,7 @@ function newSuperScriptsFunctions () {
return thisObject
function runSuperScript (node, functionLibraryNodeCloning, functionLibraryUiObjectsFromNodes) {
function runSuperScript (node, rootNodes, functionLibraryNodeCloning, functionLibraryUiObjectsFromNodes, functionLibraryNodeDeleter) {
try {
let clone = functionLibraryNodeCloning.getNodeClone
let executionResult = true
@@ -17,6 +17,10 @@ function newSuperScriptsFunctions () {
functionLibraryUiObjectsFromNodes.createUiObjectFromNode(templateClone, target, target)
}
function deleteNode (node) {
functionLibraryNodeDeleter.deleteUIObject(node, rootNodes)
}
/* Validations */
if (executionResult === true && node.payload.parentNode === undefined) {
node.payload.uiObject.setErrorMessage('Super Action node needs a Parent Node.')