Skip to content

Commit

Permalink
fix label select bugs (#19850)
Browse files Browse the repository at this point in the history
Signed-off-by: shengqiw <[email protected]>
  • Loading branch information
ShengqiWang authored and Yang Jiao committed Jan 19, 2024
1 parent 9091d39 commit f5f466e
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 f5f466e

Please sign in to comment.