From caaa6415211b625ff01c511a5d7393784428f69c Mon Sep 17 00:00:00 2001 From: ShengqiWang <124650040+ShengqiWang@users.noreply.github.com> Date: Thu, 18 Jan 2024 10:46:25 +0800 Subject: [PATCH] fix label select bugs (#19850) Signed-off-by: shengqiw --- .../create-edit-rule/create-edit-rule.component.scss | 2 ++ .../replication/create-edit-rule/create-edit-rule.component.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.scss b/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.scss index ca8cc61b5..5114fe766 100644 --- a/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.scss +++ b/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.scss @@ -33,6 +33,8 @@ h4 { .filterSelect clr-icon { margin-left: 10px; + margin-top: 5px; + margin-right: 15px; } .padLeft0 { 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 f72e4b659..4b3e56725 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 @@ -367,6 +367,7 @@ export class CreateEditRuleComponent implements OnInit, OnDestroy { this.isPushMode = true; this.selectedUnit = BandwidthUnit.KB; this.stringForLabelFilter = ''; + this.copyStringForLabelFilter = ''; } updateRuleFormAndCopyUpdateForm(rule: ReplicationPolicy): void { @@ -532,7 +533,7 @@ export class CreateEditRuleComponent implements OnInit, OnDestroy { let filters: any = copyRuleForm.filters; // set label filter - if (this.stringForLabelFilter) { + if (this.stringForLabelFilter || this.copyStringForLabelFilter) { // set stringForLabelFilter copyRuleForm.filters.forEach(item => { if (item.type === FilterType.LABEL) {