[develop | DONE | FIXED ] Project/ Funder claim form: fix messages

This commit is contained in:
argirok 2024-06-19 12:14:15 +03:00
parent 27ffac59d9
commit f26c9e8f48
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@
searching for {{openaireEntities.PROJECTS.toLowerCase()}} to add them in the Basket searching for {{openaireEntities.PROJECTS.toLowerCase()}} to add them in the Basket
</div> </div>
</div> </div>
<div *ngIf=" openaireResultsStatus != errorCodes.LOADING && this.funderOptions.length > 1 && !this.selectedFunder"> <div *ngIf=" openaireResultsStatus != errorCodes.LOADING && this.funderOptions.length > 1 && !this.selectedFunder && openaireResultsNum <= 0 ">
<div class="uk-text-center uk-text-large uk-text-meta uk-margin-large-top">Select funder or search for projects to proceed <div class="uk-text-center uk-text-large uk-text-meta uk-margin-large-top">Select funder or search for projects to proceed
</div> </div>
</div> </div>

View File

@ -36,7 +36,7 @@ export class ClaimProjectsSearchFormComponent {
public projects:string[]; public projects:string[];
public warningMessage = ""; public warningMessage = "";
openaireResults:ClaimEntity[] = []; openaireResults:ClaimEntity[] = [];
openaireResultsNum: number ; openaireResultsNum: number = -1;
openaireResultsPage : number = 1; openaireResultsPage : number = 1;
openaireResultsStatus:number = this.errorCodes.NONE; openaireResultsStatus:number = this.errorCodes.NONE;
page : number = 1; page : number = 1;
@ -91,6 +91,7 @@ export class ClaimProjectsSearchFormComponent {
this.selectedFunder = value; this.selectedFunder = value;
this.isNoProjectFunder = this.selectedFunder && this.selectedFunder.number == 1; this.isNoProjectFunder = this.selectedFunder && this.selectedFunder.number == 1;
this.openaireResults = []; this.openaireResults = [];
this.openaireResultsNum = -1;
if(this.isNoProjectFunder){ if(this.isNoProjectFunder){
this.showResults = true; this.showResults = true;
this.search(1,1); this.search(1,1);