diff --git a/src/portal/src/app/base/project/p2p-provider/add-p2p-policy/add-p2p-policy.component.ts b/src/portal/src/app/base/project/p2p-provider/add-p2p-policy/add-p2p-policy.component.ts index 73d65b3b4..a902d2574 100644 --- a/src/portal/src/app/base/project/p2p-provider/add-p2p-policy/add-p2p-policy.component.ts +++ b/src/portal/src/app/base/project/p2p-provider/add-p2p-policy/add-p2p-policy.component.ts @@ -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) { diff --git a/src/portal/src/app/base/project/p2p-provider/policy/policy.component.ts b/src/portal/src/app/base/project/p2p-provider/policy/policy.component.ts index 68bea7551..eae54fbc7 100644 --- a/src/portal/src/app/base/project/p2p-provider/policy/policy.component.ts +++ b/src/portal/src/app/base/project/p2p-provider/policy/policy.component.ts @@ -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);