mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-14 11:41:31 +01:00
Fix ui issue for add p2p policy component
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
06f2414d1c
commit
a3883e41a9
@ -154,6 +154,7 @@ export class AddP2pPolicyComponent implements OnInit, OnDestroy {
|
|||||||
this.tags = null;
|
this.tags = null;
|
||||||
this.labels = null;
|
this.labels = null;
|
||||||
this.cron = null;
|
this.cron = null;
|
||||||
|
this.isNameExisting = false;
|
||||||
if (this.providers && this.providers.length) {
|
if (this.providers && this.providers.length) {
|
||||||
this.providers.forEach(item => {
|
this.providers.forEach(item => {
|
||||||
if (item.default) {
|
if (item.default) {
|
||||||
|
@ -337,6 +337,7 @@ export class PolicyComponent implements OnInit, OnDestroy {
|
|||||||
this.addP2pPolicyComponent.labels = null;
|
this.addP2pPolicyComponent.labels = null;
|
||||||
this.addP2pPolicyComponent.isOpen = true;
|
this.addP2pPolicyComponent.isOpen = true;
|
||||||
this.addP2pPolicyComponent.isEdit = true;
|
this.addP2pPolicyComponent.isEdit = true;
|
||||||
|
this.addP2pPolicyComponent.isNameExisting = false;
|
||||||
this.addP2pPolicyComponent.inlineAlert.close();
|
this.addP2pPolicyComponent.inlineAlert.close();
|
||||||
this.addP2pPolicyComponent.policy = clone(this.selectedRow);
|
this.addP2pPolicyComponent.policy = clone(this.selectedRow);
|
||||||
const filter: any[] = JSON.parse(this.selectedRow.filters);
|
const filter: any[] = JSON.parse(this.selectedRow.filters);
|
||||||
|
Loading…
Reference in New Issue
Block a user