mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix theme bug
This commit is contained in:
@@ -31,16 +31,19 @@ export class ThemeService {
|
||||
|
||||
setTheme(theme: 'gov' | 'default' | 'tribunal') {
|
||||
|
||||
document.body.classList.remove("gov");
|
||||
document.body.classList.remove("default");
|
||||
document.body.classList.remove("tribunal");
|
||||
|
||||
document.body.classList.add(theme);
|
||||
this.currentTheme = theme;
|
||||
if(this.themes.includes(theme)) {
|
||||
document.body.classList.remove("gov");
|
||||
document.body.classList.remove("default");
|
||||
document.body.classList.remove("tribunal");
|
||||
|
||||
document.body.classList.add(theme);
|
||||
this.currentTheme = theme;
|
||||
|
||||
localstoreService.set(this.keyName, {
|
||||
theme: theme
|
||||
})
|
||||
}
|
||||
|
||||
localstoreService.set(this.keyName, {
|
||||
theme: theme
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user