mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
chore(core): Add temporary CLI option to enable logs view (no-changelog) (#14899)
This commit is contained in:
@@ -163,6 +163,9 @@ export interface FrontendSettings {
|
||||
folders: {
|
||||
enabled: boolean;
|
||||
};
|
||||
logsView: {
|
||||
enabled: boolean;
|
||||
};
|
||||
banners: {
|
||||
dismissed: string[];
|
||||
};
|
||||
|
||||
@@ -300,4 +300,13 @@ export const schema = {
|
||||
env: 'N8N_PROXY_HOPS',
|
||||
doc: 'Number of reverse-proxies n8n is running behind',
|
||||
},
|
||||
|
||||
logs_view: {
|
||||
enabled: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
env: 'N8N_ENABLE_LOGS_VIEW',
|
||||
doc: 'Temporary env variable to enable logs view',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -252,6 +252,9 @@ export class FrontendService {
|
||||
summary: true,
|
||||
dashboard: false,
|
||||
},
|
||||
logsView: {
|
||||
enabled: false,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -389,6 +392,8 @@ export class FrontendService {
|
||||
|
||||
this.settings.folders.enabled = this.license.isFoldersEnabled();
|
||||
|
||||
this.settings.logsView.enabled = config.get('logs_view.enabled');
|
||||
|
||||
return this.settings;
|
||||
}
|
||||
|
||||
|
||||
@@ -150,4 +150,7 @@ export const defaultSettings: FrontendSettings = {
|
||||
summary: true,
|
||||
dashboard: false,
|
||||
},
|
||||
logsView: {
|
||||
enabled: false,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -476,7 +476,6 @@ export const LOCAL_STORAGE_EXPERIMENT_OVERRIDES = 'N8N_EXPERIMENT_OVERRIDES';
|
||||
export const LOCAL_STORAGE_HIDE_GITHUB_STAR_BUTTON = 'N8N_HIDE_HIDE_GITHUB_STAR_BUTTON';
|
||||
export const LOCAL_STORAGE_NDV_INPUT_PANEL_DISPLAY_MODE = 'N8N_NDV_INPUT_PANEL_DISPLAY_MODE';
|
||||
export const LOCAL_STORAGE_NDV_OUTPUT_PANEL_DISPLAY_MODE = 'N8N_NDV_OUTPUT_PANEL_DISPLAY_MODE';
|
||||
export const LOCAL_STORAGE_LOGS_2025_SPRING = 'N8N_LOGS_2025_SPRING';
|
||||
export const LOCAL_STORAGE_LOGS_PANEL_OPEN = 'N8N_LOGS_PANEL_OPEN';
|
||||
export const BASE_NODE_SURVEY_URL = 'https://n8n-community.typeform.com/to/BvmzxqYv#nodename=';
|
||||
export const COMMUNITY_PLUS_DOCS_URL =
|
||||
|
||||
@@ -7,7 +7,7 @@ import * as ldapApi from '@/api/ldap';
|
||||
import * as settingsApi from '@/api/settings';
|
||||
import { testHealthEndpoint } from '@/api/templates';
|
||||
import type { ILdapConfig } from '@/Interface';
|
||||
import { STORES, INSECURE_CONNECTION_WARNING, LOCAL_STORAGE_LOGS_2025_SPRING } from '@/constants';
|
||||
import { STORES, INSECURE_CONNECTION_WARNING } from '@/constants';
|
||||
import { UserManagementAuthenticationMethod } from '@/Interface';
|
||||
import type { IDataObject, WorkflowSettings } from 'n8n-workflow';
|
||||
import { ExpressionEvaluatorProxy } from 'n8n-workflow';
|
||||
@@ -184,9 +184,7 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
|
||||
|
||||
const isDevRelease = computed(() => settings.value.releaseChannel === 'dev');
|
||||
|
||||
const isNewLogsEnabled = computed(
|
||||
() => useLocalStorage(LOCAL_STORAGE_LOGS_2025_SPRING, '').value === 'true',
|
||||
);
|
||||
const isNewLogsEnabled = computed(() => !!settings.value.logsView?.enabled);
|
||||
|
||||
const setSettings = (newSettings: FrontendSettings) => {
|
||||
settings.value = newSettings;
|
||||
|
||||
Reference in New Issue
Block a user