-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from restorecommerce/feature/account-profile-a…
…nd-preferences-design Feature/account profile and preferences design
- Loading branch information
Showing
131 changed files
with
4,827 additions
and
2,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
apps/restorecommerce/src/app/routes-title-strategy.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { Title } from '@angular/platform-browser'; | ||
import { RouterStateSnapshot, TitleStrategy } from '@angular/router'; | ||
|
||
import { APP } from '@console-core/config'; | ||
|
||
@Injectable({ providedIn: 'root' }) | ||
export class RoutesTitleStrategyService extends TitleStrategy { | ||
constructor(private readonly title: Title) { | ||
super(); | ||
} | ||
|
||
override updateTitle(routerState: RouterStateSnapshot): void { | ||
const text = this.buildTitle(routerState); | ||
if (text === undefined) { | ||
return; | ||
} | ||
|
||
this.title.setTitle(`${text} | ${APP.name}`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.