Feature/shorten page titles (#2273)
* Shorten page titles * Update changelog
This commit is contained in:
parent
6ccbda8169
commit
754b49e50f
@ -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…
x
Reference in New Issue
Block a user