Merge pull request #8258 from vvlladd28/improvemen/menu/ruleChains
Move rule chains menu link in top level
This commit is contained in:
commit
b21c7ad1d2
@ -374,6 +374,13 @@ export class MenuService {
|
|||||||
type: 'link',
|
type: 'link',
|
||||||
path: '/customers',
|
path: '/customers',
|
||||||
icon: 'supervisor_account'
|
icon: 'supervisor_account'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: guid(),
|
||||||
|
name: 'rulechain.rulechains',
|
||||||
|
type: 'link',
|
||||||
|
path: '/ruleChains',
|
||||||
|
icon: 'settings_ethernet'
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (authState.edgesSupportEnabled) {
|
if (authState.edgesSupportEnabled) {
|
||||||
@ -411,13 +418,6 @@ export class MenuService {
|
|||||||
path: '/features',
|
path: '/features',
|
||||||
icon: 'construction',
|
icon: 'construction',
|
||||||
pages: [
|
pages: [
|
||||||
{
|
|
||||||
id: guid(),
|
|
||||||
name: 'rulechain.rulechains',
|
|
||||||
type: 'link',
|
|
||||||
path: '/features/ruleChains',
|
|
||||||
icon: 'settings_ethernet'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: guid(),
|
id: guid(),
|
||||||
name: 'ota-update.ota-updates',
|
name: 'ota-update.ota-updates',
|
||||||
|
|||||||
@ -17,7 +17,6 @@
|
|||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
import { Authority } from '@shared/models/authority.enum';
|
import { Authority } from '@shared/models/authority.enum';
|
||||||
import { NgModule } from '@angular/core';
|
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 { otaUpdatesRoutes } from '@home/pages/ota-update/ota-update-routing.module';
|
||||||
import { vcRoutes } from '@home/pages/vc/vc-routing.module';
|
import { vcRoutes } from '@home/pages/vc/vc-routing.module';
|
||||||
|
|
||||||
@ -37,10 +36,9 @@ const routes: Routes = [
|
|||||||
children: [],
|
children: [],
|
||||||
data: {
|
data: {
|
||||||
auth: [Authority.TENANT_ADMIN],
|
auth: [Authority.TENANT_ADMIN],
|
||||||
redirectTo: '/features/ruleChains'
|
redirectTo: '/features/otaUpdates'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
...ruleChainsRoutes,
|
|
||||||
...otaUpdatesRoutes,
|
...otaUpdatesRoutes,
|
||||||
...vcRoutes
|
...vcRoutes
|
||||||
]
|
]
|
||||||
|
|||||||
@ -122,7 +122,7 @@ export const importRuleChainBreadcumbLabelFunction: BreadCrumbLabelFunction<Rule
|
|||||||
return `${translate.instant('rulechain.import')}: ${component.ruleChain.name}`;
|
return `${translate.instant('rulechain.import')}: ${component.ruleChain.name}`;
|
||||||
});
|
});
|
||||||
|
|
||||||
export const ruleChainsRoutes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: 'ruleChains',
|
path: 'ruleChains',
|
||||||
data: {
|
data: {
|
||||||
@ -189,24 +189,6 @@ export const ruleChainsRoutes: Routes = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
const routes: Routes = [
|
|
||||||
{
|
|
||||||
path: 'ruleChains',
|
|
||||||
pathMatch: 'full',
|
|
||||||
redirectTo: '/features/ruleChains'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'ruleChains/:ruleChainId',
|
|
||||||
pathMatch: 'full',
|
|
||||||
redirectTo: '/features/ruleChains/:ruleChainId'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'ruleChains/ruleChain/import',
|
|
||||||
pathMatch: 'full',
|
|
||||||
redirectTo: '/features/ruleChains/ruleChain/import'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
// @dynamic
|
// @dynamic
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild(routes)],
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
|||||||
@ -449,7 +449,7 @@ export const baseDetailsPageByEntityType = new Map<EntityType, string>([
|
|||||||
[EntityType.DEVICE, '/entities/devices'],
|
[EntityType.DEVICE, '/entities/devices'],
|
||||||
[EntityType.DEVICE_PROFILE, '/profiles/deviceProfiles'],
|
[EntityType.DEVICE_PROFILE, '/profiles/deviceProfiles'],
|
||||||
[EntityType.ASSET_PROFILE, '/profiles/assetProfiles'],
|
[EntityType.ASSET_PROFILE, '/profiles/assetProfiles'],
|
||||||
[EntityType.RULE_CHAIN, '/features/ruleChains'],
|
[EntityType.RULE_CHAIN, '/ruleChains'],
|
||||||
[EntityType.EDGE, '/edgeManagement/instances'],
|
[EntityType.EDGE, '/edgeManagement/instances'],
|
||||||
[EntityType.ENTITY_VIEW, '/entities/entityViews'],
|
[EntityType.ENTITY_VIEW, '/entities/entityViews'],
|
||||||
[EntityType.TB_RESOURCE, '/resources/resources-library'],
|
[EntityType.TB_RESOURCE, '/resources/resources-library'],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user