ruleChainScope refactored to ruleChainsType

This commit is contained in:
Artem Babak 2020-11-05 15:07:59 +02:00
parent 2aa50f8cbc
commit 8f93cc75e5
3 changed files with 5 additions and 5 deletions

View File

@ -50,8 +50,8 @@ const routes: Routes = [
path: ':edgeId/ruleChains',
component: EntitiesTableComponent,
data: {
auth: [Authority.TENANT_ADMIN, Authority.CUSTOMER_USER],
ruleChainScope: 'edge',
auth: [Authority.TENANT_ADMIN],
ruleChainsType: 'edge',
breadcrumb: {
label: 'edge.rulechains',
icon: 'settings_ethernet'

View File

@ -151,7 +151,7 @@ const routes: Routes = [
data: {
auth: [Authority.TENANT_ADMIN],
title: 'rulechain.rulechains',
ruleChainScope: 'tenant',
ruleChainsType: 'tenant',
type: ruleChainType.core
},
resolve: {
@ -214,7 +214,7 @@ const routes: Routes = [
data: {
auth: [Authority.TENANT_ADMIN],
title: 'edge.rulechains',
ruleChainScope: 'edges',
ruleChainsType: 'edges',
type: ruleChainType.edge
},
resolve: {

View File

@ -103,7 +103,7 @@ export class RuleChainsTableConfigResolver implements Resolve<EntityTableConfig<
resolve(route: ActivatedRouteSnapshot): EntityTableConfig<RuleChain> {
const routeParams = route.params;
this.config.componentsData = {
ruleChainScope: route.data.ruleChainScope,
ruleChainScope: route.data.ruleChainsType,
type: route.data.type,
edgeId: routeParams.edgeId
};