Feature/shorten page titles (#2273)

* Shorten page titles

* Update changelog
pull/2274/head^2
Thomas Kaul 9 months ago committed by GitHub
parent 6ccbda8169
commit 754b49e50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Shortened the page titles
- Upgraded `prisma` from version `4.16.2` to `5.2.0`
## 1.304.0 - 2023-08-27

@ -6,6 +6,7 @@ import { RouterStateSnapshot, TitleStrategy } from '@angular/router';
export class PageTitleStrategy extends TitleStrategy {
private static readonly DEFAULT_TITLE =
'Ghostfolio Open Source Wealth Management Software';
private static readonly DEFAULT_TITLE_SHORT = 'Ghostfolio';
public constructor(private readonly title: Title) {
super();
@ -15,7 +16,9 @@ export class PageTitleStrategy extends TitleStrategy {
const title = this.buildTitle(routerState);
if (title) {
this.title.setTitle(`${title} ${PageTitleStrategy.DEFAULT_TITLE}`);
this.title.setTitle(
`${title} ${PageTitleStrategy.DEFAULT_TITLE_SHORT}`
);
} else {
this.title.setTitle(`${PageTitleStrategy.DEFAULT_TITLE}`);
}

Loading…
Cancel
Save