From 01171912e7587933792e5cd1cd605a6ec3b0b1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milorad=20FIlipovi=C4=87?= Date: Tue, 8 Nov 2022 17:16:36 +0100 Subject: [PATCH] fix(editor): Fix for incorrect execution saving indicator in executions view (#4547) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 Fix workflow settings icon in executions view --- .../components/ExecutionsView/ExecutionsInfoAccordion.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/editor-ui/src/components/ExecutionsView/ExecutionsInfoAccordion.vue b/packages/editor-ui/src/components/ExecutionsView/ExecutionsInfoAccordion.vue index fb550d4d38..360a11ea7d 100644 --- a/packages/editor-ui/src/components/ExecutionsView/ExecutionsInfoAccordion.vue +++ b/packages/editor-ui/src/components/ExecutionsView/ExecutionsInfoAccordion.vue @@ -149,10 +149,10 @@ export default mixins(workflowHelpers).extend({ }, }, methods: { - updateSettings(settingsInStore: IWorkflowSettings): void { - this.workflowSaveSettings.saveFailedExecutions = settingsInStore.saveDataErrorExecution !== 'none'; - this.workflowSaveSettings.saveSuccessfulExecutions = settingsInStore.saveDataSuccessExecution !== 'none'; - this.workflowSaveSettings.saveManualExecutions = settingsInStore.saveManualExecutions === undefined ? this.defaultValues.saveManualExecutions : settingsInStore.saveManualExecutions as boolean; + updateSettings(workflowSettings: IWorkflowSettings): void { + this.workflowSaveSettings.saveFailedExecutions = workflowSettings.saveDataErrorExecution === undefined ? this.defaultValues.saveFailedExecutions === 'all' : workflowSettings.saveDataErrorExecution === 'all'; + this.workflowSaveSettings.saveSuccessfulExecutions = workflowSettings.saveDataSuccessExecution === undefined ? this.defaultValues.saveSuccessfulExecutions === 'all' : workflowSettings.saveDataSuccessExecution === 'all'; + this.workflowSaveSettings.saveManualExecutions = workflowSettings.saveManualExecutions === undefined ? this.defaultValues.saveManualExecutions : workflowSettings.saveManualExecutions as boolean; }, onAccordionClick(event: MouseEvent): void { if (event.target instanceof HTMLAnchorElement) {