Minor fix for edge rule chains
This commit is contained in:
parent
a75fc2ea0d
commit
aa14b0cb54
@ -91,7 +91,7 @@ export class RuleChainsTableConfigResolver implements Resolve<EntityTableConfig<
|
|||||||
this.config.saveEntity = ruleChain => this.saveRuleChain(ruleChain);
|
this.config.saveEntity = ruleChain => this.saveRuleChain(ruleChain);
|
||||||
this.config.deleteEntity = id => this.ruleChainService.deleteRuleChain(id.id);
|
this.config.deleteEntity = id => this.ruleChainService.deleteRuleChain(id.id);
|
||||||
this.config.onEntityAction = action => this.onRuleChainAction(action);
|
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) => {
|
this.config.entitySelectionEnabled = (ruleChain) => {
|
||||||
if (isDefined(this.edgeId) && this.edgeId != null) {
|
if (isDefined(this.edgeId) && this.edgeId != null) {
|
||||||
return this.edge.rootRuleChainId.id != ruleChain.id.id;
|
return this.edge.rootRuleChainId.id != ruleChain.id.id;
|
||||||
@ -162,7 +162,6 @@ export class RuleChainsTableConfigResolver implements Resolve<EntityTableConfig<
|
|||||||
})).subscribe();
|
})).subscribe();
|
||||||
}
|
}
|
||||||
this.config.entitiesFetchFunction = pageLink => this.ruleChainService.getEdgeRuleChains(this.edgeId, pageLink);
|
this.config.entitiesFetchFunction = pageLink => this.ruleChainService.getEdgeRuleChains(this.edgeId, pageLink);
|
||||||
this.config.entitiesDeleteEnabled = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user