From 1fef8e764c704045556441ecd58c5b32092b03ad Mon Sep 17 00:00:00 2001 From: saintsebastian Date: Tue, 30 Nov 2021 10:54:56 +0100 Subject: [PATCH] chore: style fixes --- .../src/components/ActivationModal.vue | 36 ++++++++++--------- .../src/components/WorkflowActivator.vue | 29 +++++---------- packages/editor-ui/src/constants.ts | 1 + 3 files changed, 28 insertions(+), 38 deletions(-) diff --git a/packages/editor-ui/src/components/ActivationModal.vue b/packages/editor-ui/src/components/ActivationModal.vue index 3938b2d348..3a7a3b9786 100644 --- a/packages/editor-ui/src/components/ActivationModal.vue +++ b/packages/editor-ui/src/components/ActivationModal.vue @@ -6,14 +6,14 @@ title="Workflow activated" > @@ -24,7 +24,7 @@ import Vue from 'vue'; import Modal from '@/components/Modal.vue'; -import { WORKFLOW_ACTIVE_MODAL_KEY, EXECUTIONS_MODAL_KEY } from '../constants'; +import { WORKFLOW_ACTIVE_MODAL_KEY, EXECUTIONS_MODAL_KEY, LOCAL_STORAGE_ACTIVATION_FLAG } from '../constants'; import { INodeUi } from '../Interface'; import { INodeTypeDescription } from 'n8n-workflow'; @@ -47,7 +47,8 @@ export default Vue.extend({ this.$store.dispatch('ui/openModal', EXECUTIONS_MODAL_KEY); }, handleCheckboxChange (checkboxValue: boolean) { - window.localStorage.setItem('hideActivationAlert', checkboxValue.toString()); + this.checked = checkboxValue; + window.localStorage.setItem(LOCAL_STORAGE_ACTIVATION_FLAG, checkboxValue.toString()); }, }, computed: { @@ -80,28 +81,29 @@ export default Vue.extend({ }); - diff --git a/packages/editor-ui/src/components/WorkflowActivator.vue b/packages/editor-ui/src/components/WorkflowActivator.vue index abf213ca0a..b0fc7c3a93 100644 --- a/packages/editor-ui/src/components/WorkflowActivator.vue +++ b/packages/editor-ui/src/components/WorkflowActivator.vue @@ -1,25 +1,14 @@