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
ec3ef4e879
commit
9f6a550bdb
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ export class AppComponent implements OnInit {
|
||||||
.subscribe((params: any) => {
|
.subscribe((params: any) => {
|
||||||
if (params.theme && this.themes.includes(params.theme)) {
|
if (params.theme && this.themes.includes(params.theme)) {
|
||||||
this.themeService.changeTheme(params.theme);
|
this.themeService.changeTheme(params.theme);
|
||||||
|
this.currentThemeService.setCurrentTheme(params.theme);
|
||||||
} else {
|
} else {
|
||||||
this.themeService.changeTheme(this.currentThemeService.getCurrentTheme());
|
this.themeService.changeTheme(this.currentThemeService.getCurrentTheme());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue