From 4206ec8ab1361d229b199763402c83e69b201fbd Mon Sep 17 00:00:00 2001 From: Shijun Sun <30999793+AllForNothing@users.noreply.github.com> Date: Wed, 2 Nov 2022 15:34:34 +0800 Subject: [PATCH] Add triggers and filters check for target changing under push mode (#17731) Signed-off-by: AllForNothing Signed-off-by: AllForNothing --- .../create-edit-rule/create-edit-rule.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.ts b/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.ts index ae3c67707..33a29df21 100644 --- a/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.ts +++ b/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.ts @@ -136,7 +136,11 @@ export class CreateEditRuleComponent implements OnInit, OnDestroy { .pipe(finalize(() => (this.inProgress = false))) .subscribe({ next: adapter => { - this.setFilterAndTrigger(adapter); + // for push mode, if id === 0, what we get is currentRegistryInfo, and then setFilterAndTrigger(currentRegistryInfo) + // for pull mode, always setFilterAndTrigger + if ((this.isPushMode && !id) || !this.isPushMode) { + this.setFilterAndTrigger(adapter); + } if (id) { this.checkChunkOption(id, adapter); }