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 259196d1a6..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.
-->
+
+
+
+
diff --git a/ui-ngx/src/app/modules/home/pages/rulechain/rulenode.component.ts b/ui-ngx/src/app/modules/home/pages/rulechain/rulenode.component.ts
index 1fac4e6c18..2d057565e2 100644
--- a/ui-ngx/src/app/modules/home/pages/rulechain/rulenode.component.ts
+++ b/ui-ngx/src/app/modules/home/pages/rulechain/rulenode.component.ts
@@ -17,6 +17,8 @@
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
import { Component, OnInit } from '@angular/core';
import { FcNodeComponent } from 'ngx-flowchart/dist/ngx-flowchart';
+import { FcRuleNode, RuleNodeType } from '@shared/models/rule-node.models';
+import { Router } from '@angular/router';
@Component({
// tslint:disable-next-line:component-selector
@@ -27,8 +29,10 @@ import { FcNodeComponent } from 'ngx-flowchart/dist/ngx-flowchart';
export class RuleNodeComponent extends FcNodeComponent implements OnInit {
iconUrl: SafeResourceUrl;
+ RuleNodeType = RuleNodeType;
- constructor(private sanitizer: DomSanitizer) {
+ constructor(private sanitizer: DomSanitizer,
+ private router: Router) {
super();
}
@@ -39,4 +43,12 @@ export class RuleNodeComponent extends FcNodeComponent implements OnInit {
}
}
+ openRuleChain($event: Event, node: FcRuleNode) {
+ if ($event) {
+ $event.stopPropagation();
+ }
+ if (node.targetRuleChainId) {
+ this.router.navigateByUrl(`/ruleChains/${node.targetRuleChainId}`);
+ }
+ }
}