From cfde86a9968b90b3c0eaf06f1db15102d1ab6f35 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 26 Jul 2022 13:59:22 +0100 Subject: [PATCH] Adding UI for displaying when the CRON job has been stopped and alert the user to next steps. --- .../FlowChart/FlowItemHeader.svelte | 3 ++- .../automation/HistoryDetailsPanel.svelte | 18 +++++++++++++- .../overview/automation/StatusRenderer.svelte | 3 ++- packages/server/src/threads/automation.ts | 24 +++++++++++++++++-- .../types/src/documents/app/automation.ts | 1 + 5 files changed, 44 insertions(+), 5 deletions(-) diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte index 99c6f251f9..31df2585b8 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte @@ -32,7 +32,8 @@ if (!results) { return {} } - if (results.outputs?.status?.toLowerCase() === "stopped") { + const lcStatus = results.outputs?.status?.toLowerCase() + if (lcStatus === "stopped" || lcStatus === "stopped_error") { return { yellow: true, message: "Stopped" } } else if (results.outputs?.success || isTrigger) { return { positive: true, message: "Success" } diff --git a/packages/builder/src/components/portal/overview/automation/HistoryDetailsPanel.svelte b/packages/builder/src/components/portal/overview/automation/HistoryDetailsPanel.svelte index e32669067e..370688e798 100644 --- a/packages/builder/src/components/portal/overview/automation/HistoryDetailsPanel.svelte +++ b/packages/builder/src/components/portal/overview/automation/HistoryDetailsPanel.svelte @@ -1,5 +1,5 @@