mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
25 lines
758 B
TypeScript
25 lines
758 B
TypeScript
import { Component, OnInit } from '@angular/core'
|
|
import { Meta } from '@angular/platform-browser'
|
|
import { SavedViewService } from 'src/app/services/rest/saved-view.service'
|
|
import { SettingsService } from 'src/app/services/settings.service'
|
|
|
|
@Component({
|
|
selector: 'app-dashboard',
|
|
templateUrl: './dashboard.component.html',
|
|
styleUrls: ['./dashboard.component.scss'],
|
|
})
|
|
export class DashboardComponent {
|
|
constructor(
|
|
public savedViewService: SavedViewService,
|
|
public settingsService: SettingsService
|
|
) {}
|
|
|
|
get subtitle() {
|
|
if (this.settingsService.displayName) {
|
|
return $localize`Hello ${this.settingsService.displayName}, welcome to Paperless-ngx!`
|
|
} else {
|
|
return $localize`Welcome to Paperless-ngx!`
|
|
}
|
|
}
|
|
}
|