Action Switch upgraded

This commit is contained in:
Luis Fernando Molina committed 2021-10-10 11:26:09 +02:00
1 parent 3405818181
commit c187c276df
7 files changed
+25 -26

No files matched your search

@@ -609,21 +609,6 @@ function newFoundationsActionSwitch() {
UI.projects.foundations.spaces.floatingSpace.uiObjectConstructor.createUiObject(true, action.node.payload)
}
break
case 'Send Telegram Test Message':
{
UI.projects.foundations.functionLibraries.socialBotsFunctions.sendTelegramTestMessage(action.node, action.callBackFunction)
}
break
case 'Send Discord Test Message':
{
UI.projects.foundations.functionLibraries.socialBotsFunctions.sendDiscordTestMessage(action.node, action.callBackFunction)
}
break
case 'Send Slack Test Message':
{
UI.projects.foundations.functionLibraries.socialBotsFunctions.sendSlackTestMessage(action.node, action.callBackFunction)
}
break
case 'Save node to be moved':
{
UI.projects.foundations.spaces.floatingSpace.saveFloatingObjectToBeMoved()
@@ -17,7 +17,8 @@
"label": "Send Discord Test Message",
"iconPathOn": "test-entity",
"iconPathOff": "test-entity",
"actionFunction": "payload.executeAction"
"actionFunction": "payload.executeAction",
"actionProject": "SocialBots"
},
{
"action": "Delete UI Object",
@@ -17,7 +17,8 @@
"label": "Send Slack Test Message",
"iconPathOn": "test-entity",
"iconPathOff": "test-entity",
"actionFunction": "payload.executeAction"
"actionFunction": "payload.executeAction",
"actionProject": "SocialBots"
},
{
"action": "Delete UI Object",
@@ -24,7 +24,8 @@
"label": "Send Telegram Test Message",
"iconPathOn": "test-entity",
"iconPathOff": "test-entity",
"actionFunction": "payload.executeAction"
"actionFunction": "payload.executeAction",
"actionProject": "SocialBots"
},
{
"action": "Delete UI Object",
@@ -24,7 +24,8 @@
"label": "Send Twitter Test Message",
"iconPathOn": "test-entity",
"iconPathOff": "test-entity",
"actionFunction": "payload.executeAction"
"actionFunction": "payload.executeAction",
"actionProject": "SocialBots"
},
{
"action": "Delete UI Object",
@@ -18,19 +18,24 @@ function newSocialBotsActionSwitch() {
async function executeAction(action) {
switch (action.name) {
case 'Add All Output Datasets':
case 'Send Telegram Test Message':
{
UI.projects.dataMining.functionLibraries.mineFunctions.addAllOutputDatasets(action.node)
UI.projects.socialBots.functionLibraries.socialBotsFunctions.sendTelegramTestMessage(action.node, action.callBackFunction)
}
break
case 'Add All Data Dependencies':
case 'Send Discord Test Message':
{
UI.projects.dataMining.functionLibraries.mineFunctions.addAllDataDependencies(action.node)
UI.projects.socialBots.functionLibraries.socialBotsFunctions.sendDiscordTestMessage(action.node, action.callBackFunction)
}
break
case 'Add All Data Mine Dependencies':
case 'Send Slack Test Message':
{
UI.projects.dataMining.functionLibraries.mineFunctions.addAllDataMineDataDependencies(action.node, action.rootNodes)
UI.projects.socialBots.functionLibraries.socialBotsFunctions.sendSlackTestMessage(action.node, action.callBackFunction)
}
break
case 'Send Twitter Test Message':
{
UI.projects.socialBots.functionLibraries.socialBotsFunctions.sendTwitterTestMessage(action.node, action.callBackFunction)
}
break
}
@@ -2,7 +2,8 @@ function newSocialBotsFunctionLibrarySocialBotsFunctions() {
let thisObject = {
sendTelegramTestMessage: sendTelegramTestMessage,
sendDiscordTestMessage: sendDiscordTestMessage,
sendSlackTestMessage: sendSlackTestMessage
sendSlackTestMessage: sendSlackTestMessage,
sendTwitterTestMessage: sendTwitterTestMessage
}
return thisObject
@@ -183,4 +184,8 @@ function newSocialBotsFunctionLibrarySocialBotsFunctions() {
}
}
}
function sendTwitterTestMessage(node, callBackFunction) {
}
}