Warn if no weather data
This commit is contained in:
parent
5f44aa6f46
commit
c18d370d88
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user