2020-10-27 01:10:18 +01:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
2020-12-07 22:15:56 +01:00
|
|
|
import { Title } from '@angular/platform-browser';
|
2020-10-31 00:22:12 +01:00
|
|
|
import { SavedViewConfigService } from 'src/app/services/saved-view-config.service';
|
2020-12-07 22:15:56 +01:00
|
|
|
import { environment } from 'src/environments/environment';
|
2020-10-31 00:56:20 +01:00
|
|
|
|
2020-10-27 01:10:18 +01:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-dashboard',
|
|
|
|
|
templateUrl: './dashboard.component.html',
|
2020-11-22 14:43:59 +01:00
|
|
|
styleUrls: ['./dashboard.component.scss']
|
2020-10-27 01:10:18 +01:00
|
|
|
})
|
|
|
|
|
export class DashboardComponent implements OnInit {
|
|
|
|
|
|
2020-11-22 22:35:39 +01:00
|
|
|
constructor(
|
2020-12-07 22:15:56 +01:00
|
|
|
public savedViewConfigService: SavedViewConfigService,
|
|
|
|
|
private titleService: Title) { }
|
2020-10-31 00:22:12 +01:00
|
|
|
|
|
|
|
|
|
2020-11-22 22:35:39 +01:00
|
|
|
savedViews = []
|
2020-10-27 01:10:18 +01:00
|
|
|
|
|
|
|
|
ngOnInit(): void {
|
2020-11-22 22:35:39 +01:00
|
|
|
this.savedViews = this.savedViewConfigService.getDashboardConfigs()
|
2020-12-07 22:15:56 +01:00
|
|
|
this.titleService.setTitle(`Dashboard - ${environment.appTitle}`)
|
2020-10-31 00:56:20 +01:00
|
|
|
}
|
2020-10-31 00:22:12 +01:00
|
|
|
|
2020-10-27 01:10:18 +01:00
|
|
|
}
|