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:
parent
5548116a88
commit
51cbc6e01f
|
@ -48,6 +48,7 @@
|
||||||
<!-- <div *ngIf="result['compatibility'] != undefined && result['compatibility'] != ''">
|
<!-- <div *ngIf="result['compatibility'] != undefined && result['compatibility'] != ''">
|
||||||
Compatibility: {{result.compatibility}}
|
Compatibility: {{result.compatibility}}
|
||||||
</div> -->
|
</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>
|
<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> -->
|
<!-- <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>
|
<span *ngIf="result['compatibility'] != undefined && result['compatibility'] != ''" class="uk-label custom-label label-compatibility" title="Compatibility">{{result.compatibility}}</span>
|
||||||
|
|
|
@ -7,11 +7,13 @@ import {ErrorMessagesModule} from '../../utils/errorMessages.module';
|
||||||
|
|
||||||
import {SearchResult} from '../../utils/entities/searchResult';
|
import {SearchResult} from '../../utils/entities/searchResult';
|
||||||
import {SearchResultComponent} from './searchResult.component';
|
import {SearchResultComponent} from './searchResult.component';
|
||||||
|
import {ApprovedByCommunityModule} from '../../../utils/approvedByCommunity/approved.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule, FormsModule,
|
CommonModule, FormsModule,
|
||||||
RouterModule, ErrorMessagesModule
|
RouterModule, ErrorMessagesModule,
|
||||||
|
ApprovedByCommunityModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
SearchResultComponent,
|
SearchResultComponent,
|
||||||
|
|
Loading…
Reference in New Issue