diff --git a/front/css/app.css b/front/css/app.css index a0342a85..4f887860 100755 --- a/front/css/app.css +++ b/front/css/app.css @@ -1891,13 +1891,18 @@ input[readonly] { padding: 10px; } -.workflow-card, .condition-list, .actions-list +.workflow-card, .actions-list { - display: grid; + display: contents; padding: 5px; padding-left: 10px; } +.condition-list +{ + z-index:1; +} + .condition { padding: 5px; diff --git a/front/workflowsCore.php b/front/workflowsCore.php index 5edbeb00..13a27d88 100755 --- a/front/workflowsCore.php +++ b/front/workflowsCore.php @@ -52,6 +52,7 @@ let actionTypes = [ // -------------------------------------- // Retrieve and process the data function getData() { + showSpinner(); getSetting() @@ -60,9 +61,7 @@ function getData() { workflows = res; console.log(workflows); - // Store the updated workflows object back into cache - setCache('workflows', JSON.stringify(workflows)); - + updateWorkflowsJson(workflows); renderWorkflows(); hideSpinner(); }); @@ -75,6 +74,11 @@ function renderWorkflows() { let $container = $("#workflowContainer"); $container.empty(); // Clear previous UI + workflows = getWorkflowsJson(); + + console.log("renderWorkflows"); + console.log(workflows); + $.each(workflows, function (index, wf) { let $wfElement = generateWorkflowUI(wf, index); $container.append($wfElement); @@ -87,14 +91,14 @@ function renderWorkflows() { function generateWorkflowUI(wf, wfIndex) { let $wfContainer = $("