diff --git a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html index 34a80fa79..34e346769 100644 --- a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html +++ b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html @@ -22,7 +22,7 @@
- + @@ -32,7 +32,7 @@
- + diff --git a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.ts b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.ts index 17db76bd5..fdb6ccf82 100644 --- a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.ts +++ b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.ts @@ -133,11 +133,19 @@ export class CreateEditRuleComponent implements OnInit, OnDestroy { equals(c1: any, c2: any): boolean { return c1 && c2 ? c1.id === c2.id : c1 === c2; } - modeChange(): void { + pushModeChange(): void { this.setFilter([]); this.initRegistryInfo(0); } + pullModeChange(): void { + let selectId = this.ruleForm.get('src_registry').value; + if (selectId) { + this.setFilter([]); + this.initRegistryInfo(selectId.id); + } + } + sourceChange($event): void { this.noSelectedEndpoint = false; let selectId = this.ruleForm.get('src_registry').value;