mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
fix(editor): Fix insights loading on FE (#16677)
This commit is contained in:
@@ -8,6 +8,7 @@ import { routesForSSO } from './sso';
|
|||||||
import { routesForSourceControl } from './sourceControl';
|
import { routesForSourceControl } from './sourceControl';
|
||||||
import { routesForWorkflows } from './workflow';
|
import { routesForWorkflows } from './workflow';
|
||||||
import { routesForTags } from './tag';
|
import { routesForTags } from './tag';
|
||||||
|
import { routesForModuleSettings } from './module';
|
||||||
|
|
||||||
const endpoints: Array<(server: Server) => void> = [
|
const endpoints: Array<(server: Server) => void> = [
|
||||||
routesForCredentials,
|
routesForCredentials,
|
||||||
@@ -19,6 +20,7 @@ const endpoints: Array<(server: Server) => void> = [
|
|||||||
routesForSourceControl,
|
routesForSourceControl,
|
||||||
routesForWorkflows,
|
routesForWorkflows,
|
||||||
routesForTags,
|
routesForTags,
|
||||||
|
routesForModuleSettings,
|
||||||
];
|
];
|
||||||
|
|
||||||
export { endpoints };
|
export { endpoints };
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import type { Server } from 'miragejs';
|
||||||
|
|
||||||
|
export function routesForModuleSettings(server: Server) {
|
||||||
|
server.get('/rest/module-settings', () => {
|
||||||
|
return {};
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -270,6 +270,8 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
|
|||||||
await getSettings();
|
await getSettings();
|
||||||
|
|
||||||
initialized.value = true;
|
initialized.value = true;
|
||||||
|
|
||||||
|
await getModuleSettings();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
showToast({
|
showToast({
|
||||||
title: i18n.baseText('startupError'),
|
title: i18n.baseText('startupError'),
|
||||||
|
|||||||
Reference in New Issue
Block a user