diff --git a/ui-ngx/src/app/core/services/menu.service.ts b/ui-ngx/src/app/core/services/menu.service.ts index 4d8455b8d6..c2c17c0b07 100644 --- a/ui-ngx/src/app/core/services/menu.service.ts +++ b/ui-ngx/src/app/core/services/menu.service.ts @@ -374,6 +374,13 @@ export class MenuService { type: 'link', path: '/customers', icon: 'supervisor_account' + }, + { + id: guid(), + name: 'rulechain.rulechains', + type: 'link', + path: '/ruleChains', + icon: 'settings_ethernet' } ); if (authState.edgesSupportEnabled) { @@ -411,13 +418,6 @@ export class MenuService { path: '/features', icon: 'construction', pages: [ - { - id: guid(), - name: 'rulechain.rulechains', - type: 'link', - path: '/features/ruleChains', - icon: 'settings_ethernet' - }, { id: guid(), name: 'ota-update.ota-updates', diff --git a/ui-ngx/src/app/modules/home/pages/features/features-routing.module.ts b/ui-ngx/src/app/modules/home/pages/features/features-routing.module.ts index 4448f8a559..56a0b79318 100644 --- a/ui-ngx/src/app/modules/home/pages/features/features-routing.module.ts +++ b/ui-ngx/src/app/modules/home/pages/features/features-routing.module.ts @@ -17,7 +17,6 @@ import { RouterModule, Routes } from '@angular/router'; import { Authority } from '@shared/models/authority.enum'; import { NgModule } from '@angular/core'; -import { ruleChainsRoutes } from '@home/pages/rulechain/rulechain-routing.module'; import { otaUpdatesRoutes } from '@home/pages/ota-update/ota-update-routing.module'; import { vcRoutes } from '@home/pages/vc/vc-routing.module'; @@ -37,10 +36,9 @@ const routes: Routes = [ children: [], data: { auth: [Authority.TENANT_ADMIN], - redirectTo: '/features/ruleChains' + redirectTo: '/features/otaUpdates' } }, - ...ruleChainsRoutes, ...otaUpdatesRoutes, ...vcRoutes ] diff --git a/ui-ngx/src/app/modules/home/pages/rulechain/rulechain-routing.module.ts b/ui-ngx/src/app/modules/home/pages/rulechain/rulechain-routing.module.ts index ec2148b576..d8a22c67db 100644 --- a/ui-ngx/src/app/modules/home/pages/rulechain/rulechain-routing.module.ts +++ b/ui-ngx/src/app/modules/home/pages/rulechain/rulechain-routing.module.ts @@ -122,7 +122,7 @@ export const importRuleChainBreadcumbLabelFunction: BreadCrumbLabelFunction([ [EntityType.DEVICE, '/entities/devices'], [EntityType.DEVICE_PROFILE, '/profiles/deviceProfiles'], [EntityType.ASSET_PROFILE, '/profiles/assetProfiles'], - [EntityType.RULE_CHAIN, '/features/ruleChains'], + [EntityType.RULE_CHAIN, '/ruleChains'], [EntityType.EDGE, '/edgeManagement/instances'], [EntityType.ENTITY_VIEW, '/entities/entityViews'], [EntityType.TB_RESOURCE, '/resources/resources-library'],