Display title on dashboard
This commit is contained in:
parent
bfa39fa761
commit
37ae9aec2e
@ -34,10 +34,13 @@ export class DashboardComponent extends ComponentWithPermissions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get subtitle() {
|
get subtitle() {
|
||||||
|
const appTitle = this.settingsService.get(SETTINGS_KEYS.APP_TITLE)?.length
|
||||||
|
? this.settingsService.get(SETTINGS_KEYS.APP_TITLE)
|
||||||
|
: 'Paperless-ngx'
|
||||||
if (this.settingsService.displayName) {
|
if (this.settingsService.displayName) {
|
||||||
return $localize`Hello ${this.settingsService.displayName}, welcome to Paperless-ngx`
|
return $localize`Hello ${this.settingsService.displayName}, welcome to ${appTitle}`
|
||||||
} else {
|
} else {
|
||||||
return $localize`Welcome to Paperless-ngx`
|
return $localize`Welcome to ${appTitle}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user