From 3a983cea8a36bbe478042de6c1cb924b2293f589 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 2 Jun 2020 11:08:53 +0100 Subject: [PATCH] tidy up, styling --- .../workflow/SetupPanel/SetupPanel.svelte | 44 ++++++++++--- .../WorkflowList/WorkflowList.svelte | 4 ++ .../WorkflowPanel/blockDefinitions.js | 20 +++--- packages/client/src/api/workflow/index.js | 8 +-- .../client/src/api/workflow/orchestrator.js | 66 +------------------ packages/client/src/state/stateManager.js | 1 - packages/server/src/api/controllers/record.js | 11 ++-- .../workflow/actions/CREATE_USER.js | 8 +-- .../controllers/workflow/actions/CUSTOM_JS.js | 9 --- .../workflow/actions/SAVE_RECORD.js | 21 ++++-- .../workflow/actions/SEND_EMAIL.js | 4 +- .../src/api/controllers/workflow/index.js | 8 ++- packages/server/src/api/routes/workflow.js | 2 +- packages/server/src/electron.js | 11 +++- 14 files changed, 98 insertions(+), 119 deletions(-) delete mode 100644 packages/server/src/api/controllers/workflow/actions/CUSTOM_JS.js diff --git a/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte b/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte index 1ae741b55a..676aa18d77 100644 --- a/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte @@ -9,6 +9,17 @@ const { open, close } = getContext("simple-modal") + const ACCESS_LEVELS = [ + { + name: "Admin", + key: "ADMIN" + }, + { + name: "Power User", + key: "POWER_USER" + } + ]; + let selectedTab = "SETUP" let testResult @@ -92,16 +103,14 @@
- -
- -
+
+ {#each ACCESS_LEVELS as { name, key }} + + + + + {/each} +