mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
fix theme bug
This commit is contained in:
@@ -31,16 +31,19 @@ export class ThemeService {
|
|||||||
|
|
||||||
setTheme(theme: 'gov' | 'default' | 'tribunal') {
|
setTheme(theme: 'gov' | 'default' | 'tribunal') {
|
||||||
|
|
||||||
document.body.classList.remove("gov");
|
if(this.themes.includes(theme)) {
|
||||||
document.body.classList.remove("default");
|
document.body.classList.remove("gov");
|
||||||
document.body.classList.remove("tribunal");
|
document.body.classList.remove("default");
|
||||||
|
document.body.classList.remove("tribunal");
|
||||||
document.body.classList.add(theme);
|
|
||||||
this.currentTheme = theme;
|
document.body.classList.add(theme);
|
||||||
|
this.currentTheme = theme;
|
||||||
|
|
||||||
|
localstoreService.set(this.keyName, {
|
||||||
|
theme: theme
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
localstoreService.set(this.keyName, {
|
|
||||||
theme: theme
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -548,21 +548,6 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
|||||||
return enterAnimation(baseEl).direction('reverse');
|
return enterAnimation(baseEl).direction('reverse');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* const popover = await this.popoverController.create({
|
|
||||||
component: MessagesOptionsPage,
|
|
||||||
componentProps: {
|
|
||||||
roomId: this.dm._id,
|
|
||||||
},
|
|
||||||
cssClass: 'messages-options',
|
|
||||||
event: ev,
|
|
||||||
translucent: true,
|
|
||||||
});
|
|
||||||
return await popover.present(); */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
enterAnimation,
|
enterAnimation,
|
||||||
leaveAnimation,
|
leaveAnimation,
|
||||||
|
|||||||
Reference in New Issue
Block a user