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