limit the requests for add projetcs

This commit is contained in:
argirok 2023-10-03 10:13:04 +03:00
parent 78dcc5a208
commit 205db8bf10
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,7 @@ import {CommunityService} from "../../openaireLibrary/connect/community/communit
[loading]="showLoadingInRemove" [community]="community">
</remove-projects>
<fs-modal #fsModalProjects>
<add-projects #addProjects [community]="community"
<add-projects *ngIf="modalIsOpen" #addProjects [community]="community"
(communityProjectsChanged)="communityProjectsChanged($event)"></add-projects>
</fs-modal>
`
@ -35,6 +35,7 @@ export class ManageProjectsComponent implements OnInit {
public body: string = "Send from page";
public properties: EnvProperties = properties;
public community: CommunityInfo = null;
modalIsOpen = false;
constructor(private element: ElementRef,
private title: Title,
@ -67,6 +68,7 @@ export class ManageProjectsComponent implements OnInit {
this.fullscreen.back = true;
this.fullscreen.okButton = true;
this.fullscreen.open();
this.modalIsOpen = true;
}
public communityProjectsChanged($event) {