Fix category add button on dashboard when there are no categories

This commit is contained in:
William Brawner 2018-09-01 10:35:14 -05:00
parent 9f1537b281
commit 2b8580f8e8

View file

@ -18,7 +18,7 @@
<div class="dashboard-categories"> <div class="dashboard-categories">
<h3 class="categories">Categories</h3> <h3 class="categories">Categories</h3>
<a routerLink="/categories" class="view-all" *ngIf="categories">View All</a> <a routerLink="/categories" class="view-all" *ngIf="categories">View All</a>
<div class="no-categories" *ngIf="!categories"> <div class="no-categories" *ngIf="!categories || categories.length === 0">
<a routerLink="/categories/new"> <a routerLink="/categories/new">
<mat-icon>add</mat-icon> <mat-icon>add</mat-icon>
<p>Add categories to get more insights into your income and expenses.</p> <p>Add categories to get more insights into your income and expenses.</p>