Skip to content

Commit

Permalink
Merge pull request goharbor#15533 from AllForNothing/p2p-edit
Browse files Browse the repository at this point in the history
Fix ui issue for add p2p policy component
  • Loading branch information
ninjadq committed Sep 3, 2021
2 parents 06f2414 + a3883e4 commit a854500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a854500

Please sign in to comment.