1. searchResult.component.html: component from 'utils/approvedByCommunity/approved.component.ts' is called to show if a content provider is approved by current community.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51578 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2018-03-29 13:44:55 +00:00
parent 5548116a88
commit 51cbc6e01f
2 changed files with 4 additions and 1 deletions

View File

@ -48,6 +48,7 @@
<!-- <div *ngIf="result['compatibility'] != undefined && result['compatibility'] != ''">
Compatibility: {{result.compatibility}}
</div> -->
<approved-by-community [contentProviderId]="result.id"></approved-by-community>
<span *ngIf="result['type'] != undefined && result['type'] != ''" class="uk-label custom-label label-blue label-dataprovider" title="Type"> {{result['type']}}</span>
<!-- <div *ngIf="result['type'] != undefined && result['type'] != ''">Type: {{result['type']}}</div> -->
<span *ngIf="result['compatibility'] != undefined && result['compatibility'] != ''" class="uk-label custom-label label-compatibility" title="Compatibility">{{result.compatibility}}</span>

View File

@ -7,11 +7,13 @@ import {ErrorMessagesModule} from '../../utils/errorMessages.module';
import {SearchResult} from '../../utils/entities/searchResult';
import {SearchResultComponent} from './searchResult.component';
import {ApprovedByCommunityModule} from '../../../utils/approvedByCommunity/approved.module';
@NgModule({
imports: [
CommonModule, FormsModule,
RouterModule, ErrorMessagesModule
RouterModule, ErrorMessagesModule,
ApprovedByCommunityModule
],
declarations: [
SearchResultComponent,