From 480f969e07c3282c50bc326babbc5812baac5dae Mon Sep 17 00:00:00 2001 From: Mutasem Date: Fri, 9 Jul 2021 11:01:46 +0200 Subject: [PATCH] address comments --- packages/editor-ui/src/Interface.ts | 32 +++---------------- .../editor-ui/src/components/MainSidebar.vue | 5 +-- .../editor-ui/src/components/VersionCard.vue | 15 ++------- 3 files changed, 10 insertions(+), 42 deletions(-) diff --git a/packages/editor-ui/src/Interface.ts b/packages/editor-ui/src/Interface.ts index 81008201a8e..c773d7710a0 100644 --- a/packages/editor-ui/src/Interface.ts +++ b/packages/editor-ui/src/Interface.ts @@ -20,6 +20,11 @@ import { WorkflowExecuteMode, } from 'n8n-workflow'; +import { + IN8nUISettings, + IVersionNotificationSettings, +} from 'n8n'; + import { PaintStyle, } from 'jsplumb'; @@ -445,33 +450,6 @@ export interface IPushDataConsoleMessage { message: string; } -export interface IVersionNotificationSettings { - enabled: boolean; - endpoint: string; - infoUrl: string; -} - -export interface IN8nUISettings { - endpointWebhook: string; - endpointWebhookTest: string; - saveDataErrorExecution: string; - saveDataSuccessExecution: string; - saveManualExecutions: boolean; - timezone: string; - executionTimeout: number; - maxExecutionTimeout: number; - oauthCallbackUrls: { - oauth1: string; - oauth2: string; - }; - urlBaseWebhook: string; - versionCli: string; - n8nMetadata?: { - [key: string]: string | number | undefined; - }; - versionNotifications: IVersionNotificationSettings; -} - export interface IWorkflowSettings extends IWorkflowSettingsWorkflow { errorWorkflow?: string; saveDataErrorExecution?: string; diff --git a/packages/editor-ui/src/components/MainSidebar.vue b/packages/editor-ui/src/components/MainSidebar.vue index 720086ff8d4..59be0386b13 100644 --- a/packages/editor-ui/src/components/MainSidebar.vue +++ b/packages/editor-ui/src/components/MainSidebar.vue @@ -127,7 +127,7 @@ -
+