hide image element when type is anything other than photo, issue #89
This commit is contained in:
parent
fb56ad8a81
commit
241cb26e14
1 changed files with 5 additions and 3 deletions
|
@ -34,9 +34,11 @@
|
||||||
<div *ngIf="hideImg; then hidebtn else thumbbtn"></div>
|
<div *ngIf="hideImg; then hidebtn else thumbbtn"></div>
|
||||||
<ng-template #thumbbtn>
|
<ng-template #thumbbtn>
|
||||||
<ion-item>
|
<ion-item>
|
||||||
|
<div *ngIf="r.value.type == 'photo'">
|
||||||
<ion-thumbnail item-start>
|
<ion-thumbnail item-start>
|
||||||
<img src="{{ r.value.thumbnail_url || r.value.url }}" (click)="showImage(r.value.url)">
|
<img src="{{ r.value.thumbnail_url || r.value.url }}" (click)="showImage(r.value.url)">
|
||||||
</ion-thumbnail>
|
</ion-thumbnail>
|
||||||
|
</div>
|
||||||
<h2>{{ r.value.title }}</h2>
|
<h2>{{ r.value.title }}</h2>
|
||||||
<p>{{ r.value.description }}</p>
|
<p>{{ r.value.description }}</p>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
Reference in a new issue