mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
Merge pull request #15533 from AllForNothing/p2p-edit
Fix ui issue for add p2p policy component
This commit is contained in:
commit
a854500484
@ -154,6 +154,7 @@ export class AddP2pPolicyComponent implements OnInit, OnDestroy {
|
||||
this.tags = null;
|
||||
this.labels = null;
|
||||
this.cron = null;
|
||||
this.isNameExisting = false;
|
||||
if (this.providers && this.providers.length) {
|
||||
this.providers.forEach(item => {
|
||||
if (item.default) {
|
||||
|
@ -337,6 +337,7 @@ export class PolicyComponent implements OnInit, OnDestroy {
|
||||
this.addP2pPolicyComponent.labels = null;
|
||||
this.addP2pPolicyComponent.isOpen = true;
|
||||
this.addP2pPolicyComponent.isEdit = true;
|
||||
this.addP2pPolicyComponent.isNameExisting = false;
|
||||
this.addP2pPolicyComponent.inlineAlert.close();
|
||||
this.addP2pPolicyComponent.policy = clone(this.selectedRow);
|
||||
const filter: any[] = JSON.parse(this.selectedRow.filters);
|
||||
|
Loading…
Reference in New Issue
Block a user