mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-16 03:26:50 +01:00
refactored titles
This commit is contained in:
parent
958acd8a36
commit
889fe5890d
10 changed files with 30 additions and 69 deletions
|
|
@ -1,8 +1,6 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { Title } from '@angular/platform-browser';
|
||||
import { PaperlessSavedView } from 'src/app/data/paperless-saved-view';
|
||||
import { SavedViewService } from 'src/app/services/rest/saved-view.service';
|
||||
import { environment } from 'src/environments/environment';
|
||||
|
||||
|
||||
@Component({
|
||||
|
|
@ -13,8 +11,7 @@ import { environment } from 'src/environments/environment';
|
|||
export class DashboardComponent implements OnInit {
|
||||
|
||||
constructor(
|
||||
private savedViewService: SavedViewService,
|
||||
private titleService: Title) { }
|
||||
private savedViewService: SavedViewService) { }
|
||||
|
||||
|
||||
savedViews: PaperlessSavedView[] = []
|
||||
|
|
@ -23,7 +20,6 @@ export class DashboardComponent implements OnInit {
|
|||
this.savedViewService.listAll().subscribe(results => {
|
||||
this.savedViews = results.results.filter(savedView => savedView.show_on_dashboard)
|
||||
})
|
||||
this.titleService.setTitle(`Dashboard - ${environment.appTitle}`)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue