mirror of
https://github.com/goharbor/harbor
synced 2025-04-15 04:41:52 +00:00
Add triggers and filters check for target changing under push mode (#17731)
Signed-off-by: AllForNothing <sshijun@vmware.com> Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
1f05dcdcda
commit
4206ec8ab1
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user