mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-14 03:57:13 +00:00
loading indicator for dashboard widgets
This commit is contained in:
1 parent
ce32089cc4
commit
010f1f2bd1
6 files changed
+17
-2
No files matched your search
+4
@@ -15,6 +15,8 @@ export interface Statistics {
|
||||
styleUrls: ['./statistics-widget.component.scss'],
|
||||
})
|
||||
export class StatisticsWidgetComponent implements OnInit, OnDestroy {
|
||||
loading: boolean = true
|
||||
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
private consumerStatusService: ConsumerStatusService
|
||||
@@ -29,7 +31,9 @@ export class StatisticsWidgetComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
reload() {
|
||||
this.loading = true
|
||||
this.getStatistics().subscribe((statistics) => {
|
||||
this.loading = false
|
||||
this.statistics = statistics
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user