aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/UIStore.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2023-05-24 06:57:50 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2023-05-24 16:40:43 +0530
commite245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch)
treed684777b3fde5470c9f99304a9f022422ffb8045 /src/stores/UIStore.ts
parent6.3.0-nightly.9 [skip ci] (diff)
downloadferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip
Upgrade npm modules
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