From 6a3dcc9b5fd12604da6fd01a4887e8b7fa9a5b55 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Fri, 15 Sep 2023 22:57:45 +0600 Subject: [PATCH] fix_tasks_states_template_triggers (#3705) Signed-off-by: Denis Bykhov --- .../state/StatesTemplateEditor.svelte | 6 +- plugins/task/src/index.ts | 2 +- server-plugins/task-resources/src/index.ts | 170 ++++++++++++++---- 3 files changed, 142 insertions(+), 36 deletions(-) diff --git a/plugins/task-resources/src/components/state/StatesTemplateEditor.svelte b/plugins/task-resources/src/components/state/StatesTemplateEditor.svelte index 458a33269f..631e977b85 100644 --- a/plugins/task-resources/src/components/state/StatesTemplateEditor.svelte +++ b/plugins/task-resources/src/components/state/StatesTemplateEditor.svelte @@ -128,7 +128,7 @@ }} /> -
+
{#each states as state, i} {@const color = getPlatformColorDef(state.color ?? getColorNumberByText(state.name), $themeStore.dark)} {#if state} @@ -185,7 +185,7 @@ {/if} {/each}
-
+
-
+