Browse Source

Added getEdgesRuleChains(), type: ruleChainType.core

pull/3811/head
Artem Babak 6 years ago
parent
commit
84a0604c08
  1. 4
      ui-ngx/src/app/core/http/rule-chain.service.ts
  2. 3
      ui-ngx/src/app/modules/home/pages/rulechain/rulechain-routing.module.ts

4
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<PageData<RuleChain>> {
return this.getRuleChains(pageLink, ruleChainType.edge, config);
}
public assignRuleChainToEdge(edgeId: string, ruleChainId: string, config?: RequestConfig): Observable<RuleChain> {
return this.http.post<RuleChain>(`/api/edge/${edgeId}/ruleChain/${ruleChainId}`, null,
defaultHttpOptionsFromConfig(config));

3
ui-ngx/src/app/modules/home/pages/rulechain/rulechain-routing.module.ts

@ -164,7 +164,8 @@ const routes: Routes = [
} as BreadCrumbConfig<RuleChainPageComponent>,
auth: [Authority.TENANT_ADMIN],
title: 'rulechain.rulechain',
import: false
import: false,
type: ruleChainType.core
},
resolve: {
ruleChain: RuleChainResolver,

Loading…
Cancel
Save