diff --git a/ui-ngx/src/app/modules/home/pages/rulechain/add-rule-node-dialog.component.html b/ui-ngx/src/app/modules/home/pages/rulechain/add-rule-node-dialog.component.html index 999ac5c199..e8df333ecd 100644 --- a/ui-ngx/src/app/modules/home/pages/rulechain/add-rule-node-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/rulechain/add-rule-node-dialog.component.html @@ -34,6 +34,7 @@ [ruleNode]="ruleNode" [ruleChainId]="ruleChainId" [isEdit]="true" + [isAdd]="true" [isReadOnly]="false"> diff --git a/ui-ngx/src/app/modules/home/pages/rulechain/rule-node-details.component.html b/ui-ngx/src/app/modules/home/pages/rulechain/rule-node-details.component.html index d6936ec932..e87f7158d0 100644 --- a/ui-ngx/src/app/modules/home/pages/rulechain/rule-node-details.component.html +++ b/ui-ngx/src/app/modules/home/pages/rulechain/rule-node-details.component.html @@ -15,6 +15,12 @@ limitations under the License. --> +
+ +
@@ -44,14 +50,6 @@
-
- -
, private fb: FormBuilder, - private ruleChainService: RuleChainService) { + private ruleChainService: RuleChainService, + private router: Router) { super(store); this.ruleNodeFormGroup = this.fb.group({}); } @@ -133,4 +138,13 @@ export class RuleNodeDetailsComponent extends PageComponent implements OnInit, O this.ruleNodeConfigComponent.validate(); } } + + openRuleChain($event: Event) { + if ($event) { + $event.stopPropagation(); + } + if (this.ruleNode.targetRuleChainId) { + this.router.navigateByUrl(`/ruleChains/${this.ruleNode.targetRuleChainId}`); + } + } } diff --git a/ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.ts b/ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.ts index 6a558edc11..2c8ecc9419 100644 --- a/ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.ts +++ b/ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.ts @@ -321,6 +321,8 @@ export class RuleChainPageComponent extends PageComponent if (this.ruleChainCanvas) { this.ruleChainCanvas.adjustCanvasSize(true); } + this.isEditingRuleNode = false; + this.isEditingRuleNodeLink = false; this.updateRuleNodesHighlight(); } @@ -1423,6 +1425,7 @@ export class RuleChainPageComponent extends PageComponent scroll: true }, side: 'right', + distance: 12, trackOrigin: true } );