mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-24 00:21:29 +01:00
fix label select bugs (#19850)
Signed-off-by: shengqiw <shengqiw@vmware.com>
This commit is contained in:
parent
93d0d2982a
commit
caaa641521
@ -33,6 +33,8 @@ h4 {
|
||||
|
||||
.filterSelect clr-icon {
|
||||
margin-left: 10px;
|
||||
margin-top: 5px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.padLeft0 {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user