mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Document AppComponent.updateTheme
This commit is contained in:
@@ -228,6 +228,12 @@ export class AppComponent implements OnInit, AfterViewInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the theme according to the current route, if applicable.
|
||||||
|
* @param urlAfterRedirects the current URL after redirects
|
||||||
|
* @param snapshot the current route snapshot
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
private updateTheme(urlAfterRedirects: string, snapshot: ActivatedRouteSnapshot): void {
|
private updateTheme(urlAfterRedirects: string, snapshot: ActivatedRouteSnapshot): void {
|
||||||
this.themeService.updateThemeOnRouteChange$(urlAfterRedirects, snapshot).pipe(
|
this.themeService.updateThemeOnRouteChange$(urlAfterRedirects, snapshot).pipe(
|
||||||
switchMap((changed) => {
|
switchMap((changed) => {
|
||||||
|
Reference in New Issue
Block a user