paperless-ngx/src-ui/src/app/components/dashboard/dashboard.component.ts

27 lines
738 B
TypeScript
Raw Normal View History

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';
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',
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-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-27 01:10:18 +01:00
}