From 3d43f3fefe259b5670c843ce2b4801d78a642b4d Mon Sep 17 00:00:00 2001 From: FangyuanCheng Date: Tue, 7 May 2019 11:59:05 +0800 Subject: [PATCH] Fix wrong data displayed when editing replication rule in a certain sequence. Signed-off-by: FangyuanCheng --- .../create-edit-rule/create-edit-rule.component.html | 4 ++-- .../src/create-edit-rule/create-edit-rule.component.ts | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) 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;