Browse Source

Minor fix for edge rule chains

pull/3811/head
deaflynx 6 years ago
parent
commit
aa14b0cb54
  1. 3
      ui-ngx/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.ts

3
ui-ngx/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.ts

@ -91,7 +91,7 @@ export class RuleChainsTableConfigResolver implements Resolve<EntityTableConfig<
this.config.saveEntity = ruleChain => this.saveRuleChain(ruleChain);
this.config.deleteEntity = id => this.ruleChainService.deleteRuleChain(id.id);
this.config.onEntityAction = action => this.onRuleChainAction(action);
this.config.deleteEnabled = (ruleChain) => ruleChain && !ruleChain.root;
this.config.deleteEnabled = (ruleChain) => ruleChain && !ruleChain.root && !this.edgeId;
this.config.entitySelectionEnabled = (ruleChain) => {
if (isDefined(this.edgeId) && this.edgeId != null) {
return this.edge.rootRuleChainId.id != ruleChain.id.id;
@ -162,7 +162,6 @@ export class RuleChainsTableConfigResolver implements Resolve<EntityTableConfig<
})).subscribe();
}
this.config.entitiesFetchFunction = pageLink => this.ruleChainService.getEdgeRuleChains(this.edgeId, pageLink);
this.config.entitiesDeleteEnabled = false;
}
}

Loading…
Cancel
Save