refactor(editor): Consolidate IN8nUISettings interface (#6055)
* consolidate IN8nUISettings * cleanup
This commit is contained in:
committed by
GitHub
parent
0e93fe064e
commit
ac245fdb8d
@@ -2,9 +2,9 @@ import { createPinia, setActivePinia } from 'pinia';
|
||||
import { usePostHog } from '@/stores/posthog';
|
||||
import { useUsersStore } from '@/stores/users';
|
||||
import { useSettingsStore } from '@/stores/settings';
|
||||
import { IN8nUISettings } from '@/Interface';
|
||||
import { useRootStore } from '@/stores/n8nRootStore';
|
||||
import { useTelemetryStore } from '@/stores/telemetry';
|
||||
import { IN8nUISettings } from 'n8n-workflow';
|
||||
|
||||
const DEFAULT_POSTHOG_SETTINGS: IN8nUISettings['posthog'] = {
|
||||
enabled: true,
|
||||
|
||||
@@ -2,8 +2,8 @@ import { createPinia, setActivePinia } from 'pinia';
|
||||
import { useSettingsStore } from '@/stores/settings';
|
||||
import { useSSOStore } from '@/stores/sso';
|
||||
import { merge } from 'lodash-es';
|
||||
import { IN8nUISettings } from '@/Interface';
|
||||
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';
|
||||
import { IN8nUISettings } from 'n8n-workflow';
|
||||
|
||||
let ssoStore: ReturnType<typeof useSSOStore>;
|
||||
let settingsStore: ReturnType<typeof useSettingsStore>;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user