Use image field instead of fire storage

This commit is contained in:
2018-07-14 17:59:31 -04:00
parent 617a4b42aa
commit c43eeee09e
2 changed files with 3 additions and 10 deletions

View File

@ -9,8 +9,8 @@
</nav>
<ng-container *ngFor="let c of categories | async">
<mat-card class="m-3" (click)="navigate(c.name)">
<img *ngIf="c.ready" mat-card-image [src]="c.image | async" [alt]="c.name" style="width: 200px; height: 200px;">
<mat-divider *ngIf="c.ready" class="custom-line"></mat-divider>
<img *ngIf="c.image" mat-card-image [src]="c.image" [alt]="c.name" style="width: 200px; height: 200px;">
<mat-divider *ngIf="c.image" class="custom-line"></mat-divider>
<mat-card-content>
<h5>{{c.name}}</h5>
</mat-card-content>