Skip to content

Commit

Permalink
[cherry-pick]fix label select bugs (#19850) (#19861)
Browse files Browse the repository at this point in the history
fix label select bugs (#19850)

Signed-off-by: shengqiw <shengqiw@vmware.com>
Co-authored-by: ShengqiWang <124650040+ShengqiWang@users.noreply.github.com>
  • Loading branch information
YangJiao0817 and ShengqiWang authored Jan 19, 2024
1 parent 9091d39 commit 58892ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ h4 {

.filterSelect clr-icon {
margin-left: 10px;
margin-top: 5px;
margin-right: 15px;
}

.padLeft0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 58892ae

Please sign in to comment.