summaryrefslogtreecommitdiffstats
path: root/src/stores/UIStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/UIStore.ts')
-rw-r--r--src/stores/UIStore.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/stores/UIStore.ts b/src/stores/UIStore.ts
index e0589729f..4ed45fc3b 100644
--- a/src/stores/UIStore.ts
+++ b/src/stores/UIStore.ts
@@ -98,7 +98,7 @@ export default class UIStore extends TypedStore {
98 98
99 // Actions 99 // Actions
100 @action _openSettings({ path = '/settings' }): void { 100 @action _openSettings({ path = '/settings' }): void {
101 const settingsPath = path !== '/settings' ? `/settings/${path}` : path; 101 const settingsPath = path === '/settings' ? path : `/settings/${path}`;
102 this.stores.router.push(settingsPath); 102 this.stores.router.push(settingsPath);
103 } 103 }
104 104
@@ -116,19 +116,19 @@ export default class UIStore extends TypedStore {
116 116
117 // Reactions 117 // Reactions
118 _setupThemeInDOM(): void { 118 _setupThemeInDOM(): void {
119 if (!this.isDarkThemeActive) { 119 if (this.isDarkThemeActive) {
120 document.body.classList.remove('theme__dark');
121 } else {
122 document.body.classList.add('theme__dark'); 120 document.body.classList.add('theme__dark');
121 } else {
122 document.body.classList.remove('theme__dark');
123 } 123 }
124 } 124 }
125 125
126 _setupModeInDOM(): void { 126 _setupModeInDOM(): void {
127 if (!this.isSplitModeActive) { 127 if (this.isSplitModeActive) {
128 document.body.classList.remove('mode__split');
129 } else {
130 document.body.classList.add('mode__split'); 128 document.body.classList.add('mode__split');
131 document.body.dataset.columns = this.splitColumnsNo.toString(); 129 document.body.dataset.columns = this.splitColumnsNo.toString();
130 } else {
131 document.body.classList.remove('mode__split');
132 } 132 }
133 } 133 }
134 134