limit support to link and video in cards

This commit is contained in:
Nicolas Constant 2019-05-17 00:13:30 -04:00
parent 5da0793cc3
commit e93de3c515
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<div class="card">
<div class="card" *ngIf="card.type === 'link' || card.type === 'video'">
<a *ngIf="card.type === 'link'" class="card__link" href="{{ card.url }}" target="_blank" title="{{ card.title }}">
<img *ngIf="card.image" class="card__link--image" src="{{ card.image }}" alt="" />
<div *ngIf="!card.image" class="card__link--image">