From dcec5e9e8231609a9461acb196ab157ab6fabcd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milorad=20FIlipovi=C4=87?= Date: Tue, 1 Nov 2022 22:23:05 +0100 Subject: [PATCH] fix(editor): disable settings link in executions view for unsaved workflows (#4493) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ⚡ Disabling settings link in executions view for unsaved workflows --- .../N8nInfoAccordion/InfoAccordion.vue | 1 + .../ExecutionsInfoAccordion.vue | 65 +++++++++++++++---- .../src/plugins/i18n/locales/en.json | 5 +- 3 files changed, 58 insertions(+), 13 deletions(-) diff --git a/packages/design-system/src/components/N8nInfoAccordion/InfoAccordion.vue b/packages/design-system/src/components/N8nInfoAccordion/InfoAccordion.vue index 8c50bb126..2b723be1d 100644 --- a/packages/design-system/src/components/N8nInfoAccordion/InfoAccordion.vue +++ b/packages/design-system/src/components/N8nInfoAccordion/InfoAccordion.vue @@ -19,6 +19,7 @@ + diff --git a/packages/editor-ui/src/components/ExecutionsView/ExecutionsInfoAccordion.vue b/packages/editor-ui/src/components/ExecutionsView/ExecutionsInfoAccordion.vue index 73dd4aec8..ee71c6f49 100644 --- a/packages/editor-ui/src/components/ExecutionsView/ExecutionsInfoAccordion.vue +++ b/packages/editor-ui/src/components/ExecutionsView/ExecutionsInfoAccordion.vue @@ -3,18 +3,33 @@ :class="[$style.accordion, 'mt-2xl']" :title="$locale.baseText('executionsLandingPage.emptyState.accordion.title')" :items="accordionItems" - :description="accordionDescription" :initiallyExpanded="shouldExpandAccordion" :headerIcon="accordionIcon" @click="onAccordionClick" @tooltipClick="onItemTooltipClick" - > + > + + @@ -168,6 +201,14 @@ export default Vue.extend({ footer { text-align: left; width: 100%; + font-size: var(--font-size-2xs); + } + + .disabled a { + color: currentColor; + cursor: not-allowed; + opacity: 0.5; + text-decoration: none; } } diff --git a/packages/editor-ui/src/plugins/i18n/locales/en.json b/packages/editor-ui/src/plugins/i18n/locales/en.json index 07ace4eb9..4528a7b65 100644 --- a/packages/editor-ui/src/plugins/i18n/locales/en.json +++ b/packages/editor-ui/src/plugins/i18n/locales/en.json @@ -401,7 +401,10 @@ "executionsLandingPage.emptyState.accordion.productionExecutions": "Production executions", "executionsLandingPage.emptyState.accordion.manualExecutions": "Manual executions", "executionsLandingPage.emptyState.accordion.productionExecutionsWarningTooltip": "Not all production executions are being saved. Change this in the workflow's settings", - "executionsLandingPage.emptyState.accordion.footer": "You can change this in Workflow Settings", + "executionsLandingPage.emptyState.accordion.footer": "You can change this in", + "executionsLandingPage.emptyState.accordion.footer.settingsLink": "Workflow settings", + "executionsLandingPage.emptyState.accordion.footer.tooltipLink": "Save your workflow", + "executionsLandingPage.emptyState.accordion.footer.tooltipText": "in order to access workflow settings", "executionsLandingPage.noResults": "No executions found", "executionsList.allWorkflows": "All Workflows", "executionsList.anyStatus": "Any Status",