@@ -30,7 +30,19 @@ import {
30
30
PluginInitializerContext ,
31
31
WorkspaceAvailability ,
32
32
} from '../../../src/core/public' ;
33
- import { APP_ID_LOGIN , CUSTOM_ERROR_PAGE_URI , LOGIN_PAGE_URI , PLUGIN_NAME } from '../common' ;
33
+ import {
34
+ APP_ID_LOGIN ,
35
+ CUSTOM_ERROR_PAGE_URI ,
36
+ LOGIN_PAGE_URI ,
37
+ PLUGIN_AUDITLOG_APP_ID ,
38
+ PLUGIN_AUTH_APP_ID ,
39
+ PLUGIN_GET_STARTED_APP_ID ,
40
+ PLUGIN_NAME ,
41
+ PLUGIN_PERMISSIONS_APP_ID ,
42
+ PLUGIN_ROLES_APP_ID ,
43
+ PLUGIN_TENANTS_APP_ID ,
44
+ PLUGIN_USERS_APP_ID ,
45
+ } from '../common' ;
34
46
import { APP_ID_CUSTOMERROR } from '../common' ;
35
47
import { setupTopNavButton } from './apps/account/account-app' ;
36
48
import { fetchAccountInfoSafe } from './apps/account/utils' ;
@@ -175,7 +187,7 @@ export class SecurityPlugin
175
187
176
188
if ( core . chrome . navGroup . getNavGroupEnabled ( ) ) {
177
189
core . application . register ( {
178
- id : `security-dashboards-plugin_getstarted` ,
190
+ id : PLUGIN_GET_STARTED_APP_ID ,
179
191
title : 'Get Started' ,
180
192
order : 8040 ,
181
193
workspaceAvailability : WorkspaceAvailability . outsideWorkspace ,
@@ -185,7 +197,7 @@ export class SecurityPlugin
185
197
} ,
186
198
} ) ;
187
199
core . application . register ( {
188
- id : `security-dashboards-plugin_auth` ,
200
+ id : PLUGIN_AUTH_APP_ID ,
189
201
title : 'Authentication' ,
190
202
order : 8040 ,
191
203
workspaceAvailability : WorkspaceAvailability . outsideWorkspace ,
@@ -195,7 +207,7 @@ export class SecurityPlugin
195
207
} ,
196
208
} ) ;
197
209
core . application . register ( {
198
- id : `security-dashboards-plugin_roles` ,
210
+ id : PLUGIN_ROLES_APP_ID ,
199
211
title : 'Roles' ,
200
212
order : 8040 ,
201
213
workspaceAvailability : WorkspaceAvailability . outsideWorkspace ,
@@ -205,7 +217,7 @@ export class SecurityPlugin
205
217
} ,
206
218
} ) ;
207
219
core . application . register ( {
208
- id : `security-dashboards-plugin_users` ,
220
+ id : PLUGIN_USERS_APP_ID ,
209
221
title : 'Internal users' ,
210
222
order : 8040 ,
211
223
workspaceAvailability : WorkspaceAvailability . outsideWorkspace ,
@@ -215,7 +227,7 @@ export class SecurityPlugin
215
227
} ,
216
228
} ) ;
217
229
core . application . register ( {
218
- id : `security-dashboards-plugin_permissions` ,
230
+ id : PLUGIN_PERMISSIONS_APP_ID ,
219
231
title : 'Permissions' ,
220
232
order : 8040 ,
221
233
workspaceAvailability : WorkspaceAvailability . outsideWorkspace ,
@@ -226,7 +238,7 @@ export class SecurityPlugin
226
238
} ) ;
227
239
if ( config . multitenancy . enabled ) {
228
240
core . application . register ( {
229
- id : `security-dashboards-plugin_tenants` ,
241
+ id : PLUGIN_TENANTS_APP_ID ,
230
242
title : 'Tenants' ,
231
243
order : 8040 ,
232
244
workspaceAvailability : WorkspaceAvailability . outsideWorkspace ,
@@ -237,7 +249,7 @@ export class SecurityPlugin
237
249
} ) ;
238
250
}
239
251
core . application . register ( {
240
- id : `security-dashboards-plugin_auditlog` ,
252
+ id : PLUGIN_AUDITLOG_APP_ID ,
241
253
title : 'Audit logs' ,
242
254
order : 8040 ,
243
255
workspaceAvailability : WorkspaceAvailability . outsideWorkspace ,
@@ -250,31 +262,31 @@ export class SecurityPlugin
250
262
251
263
core . chrome . navGroup . addNavLinksToGroup ( DEFAULT_NAV_GROUPS . dataAdministration , [
252
264
{
253
- id : `security-dashboards-plugin_getstarted` ,
265
+ id : PLUGIN_GET_STARTED_APP_ID ,
254
266
category : dataAccessUsersCategory ,
255
267
} ,
256
268
{
257
- id : `security-dashboards-plugin_auth` ,
269
+ id : PLUGIN_AUTH_APP_ID ,
258
270
category : dataAccessUsersCategory ,
259
271
} ,
260
272
{
261
- id : `security-dashboards-plugin_roles` ,
273
+ id : PLUGIN_ROLES_APP_ID ,
262
274
category : dataAccessUsersCategory ,
263
275
} ,
264
276
{
265
- id : `security-dashboards-plugin_users` ,
277
+ id : PLUGIN_USERS_APP_ID ,
266
278
category : dataAccessUsersCategory ,
267
279
} ,
268
280
{
269
- id : `security-dashboards-plugin_permissions` ,
281
+ id : PLUGIN_PERMISSIONS_APP_ID ,
270
282
category : dataAccessUsersCategory ,
271
283
} ,
272
284
{
273
- id : `security-dashboards-plugin_tenants` ,
285
+ id : PLUGIN_TENANTS_APP_ID ,
274
286
category : dataAccessUsersCategory ,
275
287
} ,
276
288
{
277
- id : `security-dashboards-plugin_auditlog` ,
289
+ id : PLUGIN_AUDITLOG_APP_ID ,
278
290
category : dataAccessUsersCategory ,
279
291
} ,
280
292
] ) ;
0 commit comments