ruleChainScope refactored to ruleChainsType
This commit is contained in:
parent
2aa50f8cbc
commit
8f93cc75e5
@ -50,8 +50,8 @@ const routes: Routes = [
|
|||||||
path: ':edgeId/ruleChains',
|
path: ':edgeId/ruleChains',
|
||||||
component: EntitiesTableComponent,
|
component: EntitiesTableComponent,
|
||||||
data: {
|
data: {
|
||||||
auth: [Authority.TENANT_ADMIN, Authority.CUSTOMER_USER],
|
auth: [Authority.TENANT_ADMIN],
|
||||||
ruleChainScope: 'edge',
|
ruleChainsType: 'edge',
|
||||||
breadcrumb: {
|
breadcrumb: {
|
||||||
label: 'edge.rulechains',
|
label: 'edge.rulechains',
|
||||||
icon: 'settings_ethernet'
|
icon: 'settings_ethernet'
|
||||||
|
|||||||
@ -151,7 +151,7 @@ const routes: Routes = [
|
|||||||
data: {
|
data: {
|
||||||
auth: [Authority.TENANT_ADMIN],
|
auth: [Authority.TENANT_ADMIN],
|
||||||
title: 'rulechain.rulechains',
|
title: 'rulechain.rulechains',
|
||||||
ruleChainScope: 'tenant',
|
ruleChainsType: 'tenant',
|
||||||
type: ruleChainType.core
|
type: ruleChainType.core
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
@ -214,7 +214,7 @@ const routes: Routes = [
|
|||||||
data: {
|
data: {
|
||||||
auth: [Authority.TENANT_ADMIN],
|
auth: [Authority.TENANT_ADMIN],
|
||||||
title: 'edge.rulechains',
|
title: 'edge.rulechains',
|
||||||
ruleChainScope: 'edges',
|
ruleChainsType: 'edges',
|
||||||
type: ruleChainType.edge
|
type: ruleChainType.edge
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
@ -103,7 +103,7 @@ export class RuleChainsTableConfigResolver implements Resolve<EntityTableConfig<
|
|||||||
resolve(route: ActivatedRouteSnapshot): EntityTableConfig<RuleChain> {
|
resolve(route: ActivatedRouteSnapshot): EntityTableConfig<RuleChain> {
|
||||||
const routeParams = route.params;
|
const routeParams = route.params;
|
||||||
this.config.componentsData = {
|
this.config.componentsData = {
|
||||||
ruleChainScope: route.data.ruleChainScope,
|
ruleChainScope: route.data.ruleChainsType,
|
||||||
type: route.data.type,
|
type: route.data.type,
|
||||||
edgeId: routeParams.edgeId
|
edgeId: routeParams.edgeId
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user