refactor(core): Port nodes config (no-changelog) (#10140)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Iván Ovejero
2024-07-23 13:32:50 +02:00
committed by GitHub
parent d2a3a4a080
commit 95b85dd5c1
14 changed files with 95 additions and 65 deletions

View File

@@ -57,7 +57,7 @@ export class FrontendService {
this.initSettings();
if (config.getEnv('nodes.communityPackages.enabled')) {
if (this.globalConfig.nodes.communityPackages.enabled) {
void import('@/services/communityPackages.service').then(({ CommunityPackagesService }) => {
this.communityPackagesService = Container.get(CommunityPackagesService);
});
@@ -154,7 +154,7 @@ export class FrontendService {
latestVersion: 1,
path: this.globalConfig.publicApi.path,
swaggerUi: {
enabled: !Container.get(GlobalConfig).publicApi.swaggerUiDisabled,
enabled: !this.globalConfig.publicApi.swaggerUiDisabled,
},
},
workflowTagsDisabled: config.getEnv('workflowTagsDisabled'),
@@ -166,7 +166,7 @@ export class FrontendService {
},
executionMode: config.getEnv('executions.mode'),
pushBackend: config.getEnv('push.backend'),
communityNodesEnabled: config.getEnv('nodes.communityPackages.enabled'),
communityNodesEnabled: this.globalConfig.nodes.communityPackages.enabled,
deployment: {
type: config.getEnv('deployment.type'),
},