Add loading behavior

This commit is contained in:
2019-10-04 17:20:25 -04:00
parent 6101cf6a76
commit 3314abfc5c
4 changed files with 21 additions and 10 deletions

View File

@@ -85,6 +85,12 @@ export class WeatherChartsComponent implements OnInit {
let start: moment.Moment;
let end: moment.Moment;
this.loading = true;
if (this.chart) {
this.chart.ref$.subscribe(o => o.showLoading());
}
switch (this.selectedTimeSpan) {
case TimeSpan.Last24Hours: {
start = moment().subtract(24, 'hour');