mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
fix(docs): set theme after redirecting
This commit is contained in:
parent
3ba05e9eb1
commit
e0aa17bbd0
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ export class AppComponent implements OnInit {
|
|||
.subscribe((params: any) => {
|
||||
if (params.theme && this.themes.includes(params.theme)) {
|
||||
this.themeService.changeTheme(params.theme);
|
||||
this.currentThemeService.setCurrentTheme(params.theme);
|
||||
} else {
|
||||
this.themeService.changeTheme(this.currentThemeService.getCurrentTheme());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue