hide image element when type is anything other than photo, issue #89

This commit is contained in:
Morgan McMillian 2020-02-01 09:45:13 -08:00
parent fb56ad8a81
commit 241cb26e14

View file

@ -34,9 +34,11 @@
<div *ngIf="hideImg; then hidebtn else thumbbtn"></div>
<ng-template #thumbbtn>
<ion-item>
<ion-thumbnail item-start>
<img src="{{ r.value.thumbnail_url || r.value.url }}" (click)="showImage(r.value.url)">
</ion-thumbnail>
<div *ngIf="r.value.type == 'photo'">
<ion-thumbnail item-start>
<img src="{{ r.value.thumbnail_url || r.value.url }}" (click)="showImage(r.value.url)">
</ion-thumbnail>
</div>
<h2>{{ r.value.title }}</h2>
<p>{{ r.value.description }}</p>
</ion-item>