Showing
1 changed file
with
1 additions
and
2 deletions
... | ... | @@ -91,7 +91,7 @@ export class RuleChainsTableConfigResolver implements Resolve<EntityTableConfig< |
91 | 91 | this.config.saveEntity = ruleChain => this.saveRuleChain(ruleChain); |
92 | 92 | this.config.deleteEntity = id => this.ruleChainService.deleteRuleChain(id.id); |
93 | 93 | this.config.onEntityAction = action => this.onRuleChainAction(action); |
94 | - this.config.deleteEnabled = (ruleChain) => ruleChain && !ruleChain.root; | |
94 | + this.config.deleteEnabled = (ruleChain) => ruleChain && !ruleChain.root && !this.edgeId; | |
95 | 95 | this.config.entitySelectionEnabled = (ruleChain) => { |
96 | 96 | if (isDefined(this.edgeId) && this.edgeId != null) { |
97 | 97 | return this.edge.rootRuleChainId.id != ruleChain.id.id; |
... | ... | @@ -162,7 +162,6 @@ export class RuleChainsTableConfigResolver implements Resolve<EntityTableConfig< |
162 | 162 | })).subscribe(); |
163 | 163 | } |
164 | 164 | this.config.entitiesFetchFunction = pageLink => this.ruleChainService.getEdgeRuleChains(this.edgeId, pageLink); |
165 | - this.config.entitiesDeleteEnabled = false; | |
166 | 165 | } |
167 | 166 | } |
168 | 167 | ... | ... |