refactor(editor): Consolidate IN8nUISettings interface (#6055)

* consolidate IN8nUISettings

* cleanup
This commit is contained in:
Michael Auerswald
2023-04-21 13:30:57 +02:00
committed by GitHub
parent 0e93fe064e
commit ac245fdb8d
11 changed files with 151 additions and 214 deletions

View File

@@ -16,16 +16,19 @@ import {
} from '@/constants';
import {
ILdapConfig,
ILogLevel,
IN8nPromptResponse,
IN8nPrompts,
IN8nUISettings,
IN8nValueSurveyData,
ISettingsState,
UserManagementAuthenticationMethod,
WorkflowCallerPolicyDefaultOption,
} from '@/Interface';
import { IDataObject, ITelemetrySettings } from 'n8n-workflow';
import {
IDataObject,
ILogLevel,
IN8nUISettings,
ITelemetrySettings,
WorkflowSettings,
} from 'n8n-workflow';
import { defineStore } from 'pinia';
import Vue from 'vue';
import { useRootStore } from './n8nRootStore';
@@ -175,7 +178,7 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, {
isQueueModeEnabled(): boolean {
return this.settings.executionMode === 'queue';
},
workflowCallerPolicyDefaultOption(): WorkflowCallerPolicyDefaultOption {
workflowCallerPolicyDefaultOption(): WorkflowSettings.CallerPolicy {
return this.settings.workflowCallerPolicyDefaultOption;
},
isDefaultAuthenticationSaml(): boolean {