This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects

Resolve "Reviewing Badges: Zusätzliche Icons"

Merged Michael Breu requested to merge 397-reviewing-badges-zusatzliche-icons into development
Viewing commit c7c5e3bd
Show latest version
3 files
+ 4
103
Compare changes
  • Side-by-side
  • Inline
Files
3
import { Component } from '@angular/core';
import { Exercise, searchResultToExercise } from 'app/shared/model/exercise.model';
import { SearchInput } from 'app/shared/model/search/search-input.model';
import { SearchService } from 'app/search/service/search-service';
import { SearchResultsDTO } from 'app/shared/model/search/search-results-dto.model';
@@ -56,14 +55,14 @@ export class SearchComponent {
}
}
private parseSearchResultsDTO(searchResultsDTO: SearchResultsDTO): Exercise[] {
private parseSearchResultsDTO(searchResultsDTO: SearchResultsDTO): SearchResultDTO[] {
this.hitCount = searchResultsDTO.hitCount;
// fix string to date conversion: unfortunatelly dates are not converted correctly :-()
searchResultsDTO.searchResult.forEach(hit => {
hit.project.last_activity_at = new Date(hit.project.last_activity_at);
hit.file.indexing_date = new Date(hit.file.indexing_date);
});
return searchResultsDTO.searchResult.map(searchResultToExercise);
return searchResultsDTO.searchResult;
}
onScroll(): void {