Add timespan toggle to acceleration dashboard
This commit is contained in:
@@ -37,6 +37,7 @@ export class AcceleratorDashboardComponent implements OnInit {
|
||||
webGlEnabled = true;
|
||||
seen: Set<string> = new Set();
|
||||
firstLoad = true;
|
||||
timespan: '3d' | '1w' | '1m' = '1w';
|
||||
|
||||
graphHeight: number = 300;
|
||||
theme: ThemeService;
|
||||
@@ -148,6 +149,11 @@ export class AcceleratorDashboardComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
setTimespan(timespan): boolean {
|
||||
this.timespan = timespan;
|
||||
return false;
|
||||
}
|
||||
|
||||
@HostListener('window:resize', ['$event'])
|
||||
onResize(): void {
|
||||
if (window.innerWidth >= 992) {
|
||||
|
||||
Reference in New Issue
Block a user