diff --git a/ui-ngx/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.ts b/ui-ngx/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.ts index 89082a1d19..bd8c9b8e1a 100644 --- a/ui-ngx/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.ts +++ b/ui-ngx/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.ts @@ -91,7 +91,7 @@ export class RuleChainsTableConfigResolver implements Resolve 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 this.ruleChainService.getEdgeRuleChains(this.edgeId, pageLink); - this.config.entitiesDeleteEnabled = false; } }