mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +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
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -548,21 +548,6 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
||||
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({
|
||||
enterAnimation,
|
||||
leaveAnimation,
|
||||
|
||||
Reference in New Issue
Block a user