This commit is contained in:
jokob-sk committed 2025-04-03 07:51:59 +11:00
1 parent e1f9ca05b7
commit 2889be28e4
16 files changed
+89 -29

No files matched your search

+13 -11
View File
@@ -66,6 +66,18 @@ let actionTypes = [
"update_field", "delete_device"
];
let emptyWorkflow = {
"name": "New Workflow",
"trigger": {
"object_type": "Devices",
"event_type": "insert"
},
"conditions": [
],
"actions": [
]
};
// --------------------------------------
// Retrieve and process the data
function getData() {
@@ -1073,17 +1085,7 @@ function updateWorkflowsJson(workflows)
// Get empty workflow JSON
function getEmptyWorkflowJson()
{
return {
"name": "New Workflow",
"trigger": {
"object_type": "Devices",
"event_type": "create"
},
"conditions": [
],
"actions": [
]
}
return emptyWorkflow;
}
// ---------------------------------------------------