File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
frontend/editor-ui/src/__tests__ Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -181,4 +181,7 @@ export interface FrontendSettings {
181
181
partialExecution : {
182
182
version : 1 | 2 ;
183
183
} ;
184
+ insights : {
185
+ enabled : boolean ;
186
+ } ;
184
187
}
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { CredentialsOverwrites } from '@/credentials-overwrites';
15
15
import { getLdapLoginLabel } from '@/ldap.ee/helpers.ee' ;
16
16
import { License } from '@/license' ;
17
17
import { LoadNodesAndCredentials } from '@/load-nodes-and-credentials' ;
18
+ import { ModulesConfig } from '@/modules/modules.config' ;
18
19
import { isApiEnabled } from '@/public-api' ;
19
20
import type { CommunityPackagesService } from '@/services/community-packages.service' ;
20
21
import { getSamlLoginLabel } from '@/sso.ee/saml/saml-helpers' ;
@@ -44,6 +45,7 @@ export class FrontendService {
44
45
private readonly instanceSettings : InstanceSettings ,
45
46
private readonly urlService : UrlService ,
46
47
private readonly securityConfig : SecurityConfig ,
48
+ private readonly modulesConfig : ModulesConfig ,
47
49
) {
48
50
loadNodesAndCredentials . addPostProcessor ( async ( ) => await this . generateTypes ( ) ) ;
49
51
void this . generateTypes ( ) ;
@@ -235,6 +237,9 @@ export class FrontendService {
235
237
folders : {
236
238
enabled : false ,
237
239
} ,
240
+ insights : {
241
+ enabled : this . modulesConfig . modules . includes ( 'insights' ) ,
242
+ } ,
238
243
} ;
239
244
}
240
245
Original file line number Diff line number Diff line change @@ -141,4 +141,7 @@ export const defaultSettings: FrontendSettings = {
141
141
folders : {
142
142
enabled : false ,
143
143
} ,
144
+ insights : {
145
+ enabled : false ,
146
+ } ,
144
147
} ;
You can’t perform that action at this time.
0 commit comments