diff --git a/ui-ngx/src/app/core/http/rule-chain.service.ts b/ui-ngx/src/app/core/http/rule-chain.service.ts index 2901feb1d0..06c67b0134 100644 --- a/ui-ngx/src/app/core/http/rule-chain.service.ts +++ b/ui-ngx/src/app/core/http/rule-chain.service.ts @@ -298,6 +298,10 @@ export class RuleChainService { defaultHttpOptionsFromConfig(config) ) } + public getEdgesRuleChains(pageLink: PageLink, config?: RequestConfig): Observable> { + return this.getRuleChains(pageLink, ruleChainType.edge, config); + } + public assignRuleChainToEdge(edgeId: string, ruleChainId: string, config?: RequestConfig): Observable { return this.http.post(`/api/edge/${edgeId}/ruleChain/${ruleChainId}`, null, defaultHttpOptionsFromConfig(config)); 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 0e7441f7fa..41fa0db079 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 @@ -164,7 +164,8 @@ const routes: Routes = [ } as BreadCrumbConfig, auth: [Authority.TENANT_ADMIN], title: 'rulechain.rulechain', - import: false + import: false, + type: ruleChainType.core }, resolve: { ruleChain: RuleChainResolver,