Warn if no weather data

This commit is contained in:
Zakary Timson 2019-01-02 13:35:16 -05:00
parent 5f44aa6f46
commit c18d370d88

View File

@ -1,4 +1,4 @@
<div class="w-100 h-100"> <div *ngIf="weatherService.weather.length" class="w-100 h-100">
<h3 class="text-center">{{weatherService.weather[0].phrase}}</h3> <h3 class="text-center">{{weatherService.weather[0].phrase}}</h3>
<div class="d-flex align-items-center"> <div class="d-flex align-items-center">
<div><i [class]="'mt-4 wi wi-fw ' + weatherService.icon" style="font-size: 6rem"></i></div> <div><i [class]="'mt-4 wi wi-fw ' + weatherService.icon" style="font-size: 6rem"></i></div>
@ -25,3 +25,6 @@
</div> </div>
</div> </div>
</div> </div>
<div>
<h3 class="text-danger">No Weather Data (API Limit Reached)</h3>
</div>