Merge pull request #15533 from AllForNothing/p2p-edit

Fix ui issue for add p2p policy component
This commit is contained in:
Qian Deng 2021-09-03 16:16:30 +08:00 committed by GitHub
commit a854500484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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) {

View File

@ -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);