limit the requests for add projetcs
This commit is contained in:
parent
78dcc5a208
commit
205db8bf10
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue