diff --git a/.github/workflows/docker_dev.yml b/.github/workflows/docker_dev.yml index d2c868ac..3a4ed6c5 100755 --- a/.github/workflows/docker_dev.yml +++ b/.github/workflows/docker_dev.yml @@ -3,12 +3,12 @@ name: docker on: push: branches: - - '**' + - main tags: - '*.*.*' pull_request: branches: - - master + - main jobs: docker_dev: diff --git a/front/css/app.css b/front/css/app.css index afb72dae..06523a0a 100755 --- a/front/css/app.css +++ b/front/css/app.css @@ -1868,6 +1868,11 @@ input[readonly] { display: contents; } +.workflow-card .panel-title +{ + padding: 10px; +} + .workflow-card, .condition-list, .actions-list { display: grid; diff --git a/front/workflowsCore.php b/front/workflowsCore.php index 818ddf2f..c44ce020 100755 --- a/front/workflowsCore.php +++ b/front/workflowsCore.php @@ -47,7 +47,7 @@ let operatorTypes = [ ]; let actionTypes = [ - "update_field", "run_plugin" + "update_field", "run_plugin", "delete_device" ]; // -------------------------------------- @@ -60,11 +60,16 @@ function getData() { $.get('php/server/query_json.php?file=workflows.json', function (res) { workflows = res; console.log(workflows); + + // Store the updated workflows object back into cache + setCache('workflows', JSON.stringify(workflows)); + renderWorkflows(); hideSpinner(); }); } + // -------------------------------------- // Render all workflows function renderWorkflows() { @@ -80,18 +85,18 @@ function renderWorkflows() { // -------------------------------------- // Generate UI for a single workflow -function generateWorkflowUI(wf, index) { +function generateWorkflowUI(wf, wfIndex) { let $wfContainer = $("