Revision 60977
Added by Konstantina Galouni almost 3 years ago
remove-projects.component.ts | ||
---|---|---|
305 | 305 |
} |
306 | 306 |
|
307 | 307 |
public filterCommunityProjectByKeyword(project): boolean { |
308 |
const textFlag = this.searchText.toString().toLowerCase() === '' |
|
309 |
|| (project.name.toLowerCase() || project.acronym || project.grantId || project.funder).match(this.searchText) != null; |
|
308 |
const textFlag = this.searchText.toString() === '' |
|
309 |
|| ((project.name + " " + project.acronym + " " + project.grantId + " " + project.funder)).match(this.searchText) != null; |
|
310 |
|
|
310 | 311 |
return textFlag; |
311 | 312 |
} |
312 | 313 |
|
Also available in: Unified diff
[new-UI | Admin]:
1. remove-projects.component.html: [Bug fix] When there is no openaireId or no (grantId and funder), show name of project without a link.
2. remove-content-providers.component.ts & remove-projects.component.ts: [Bug fix] In method for filtering by keyword, match all fields with search text.
3. add-content-providers.component.ts & add-projects.component.ts:
a. getCommunityProjectId() --> getCommunityProject() and getCommunityContentProviderId() --> getCommunityContentProvider().
b. [Bug fix] call getCommunityProject() and getCommunityContentProvider() in remove method, to find index and splice deleted project/ content provider.
4. add-content-providers.component.html & add-projects.component.html: Call updated getCommunityProject() and getCommunityContentProvider().