aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/features')
-rw-r--r--src/features/announcements/index.js4
-rw-r--r--src/features/appearance/index.js4
-rw-r--r--src/features/quickSwitch/Component.js8
-rwxr-xr-xsrc/features/settingsWS/index.js4
-rw-r--r--src/features/todos/index.js8
-rw-r--r--src/features/workspaces/index.js8
6 files changed, 17 insertions, 19 deletions
diff --git a/src/features/announcements/index.js b/src/features/announcements/index.js
index 28f0b10ed..19930c5b1 100644
--- a/src/features/announcements/index.js
+++ b/src/features/announcements/index.js
@@ -24,8 +24,6 @@ export default function initAnnouncements(stores, actions) {
24 announcementsStore.stop(); 24 announcementsStore.stop();
25 } 25 }
26 }, 26 },
27 { 27 { fireImmediately: true },
28 fireImmediately: true,
29 },
30 ); 28 );
31} 29}
diff --git a/src/features/appearance/index.js b/src/features/appearance/index.js
index 87651a3f4..c3425ba9c 100644
--- a/src/features/appearance/index.js
+++ b/src/features/appearance/index.js
@@ -235,8 +235,6 @@ export default function initAppearance(stores) {
235 () => { 235 () => {
236 updateStyle(settings.all.app); 236 updateStyle(settings.all.app);
237 }, 237 },
238 { 238 { fireImmediately: true },
239 fireImmediately: true,
240 },
241 ); 239 );
242} 240}
diff --git a/src/features/quickSwitch/Component.js b/src/features/quickSwitch/Component.js
index 812f2c04b..78d5d94a0 100644
--- a/src/features/quickSwitch/Component.js
+++ b/src/features/quickSwitch/Component.js
@@ -118,8 +118,12 @@ export default @injectSheet(styles) @inject('stores', 'actions') @observer class
118 this.openService = this.openService.bind(this); 118 this.openService = this.openService.bind(this);
119 119
120 reaction( 120 reaction(
121 () => ModalState.isModalVisible, 121 () => (
122 this._handleVisibilityChange, 122 ModalState.isModalVisible
123 ),
124 () => {
125 this._handleVisibilityChange();
126 },
123 ); 127 );
124 } 128 }
125 129
diff --git a/src/features/settingsWS/index.js b/src/features/settingsWS/index.js
index 6711296da..7771421d6 100755
--- a/src/features/settingsWS/index.js
+++ b/src/features/settingsWS/index.js
@@ -22,8 +22,6 @@ export default function initSettingsWebSocket(stores, actions) {
22 settingsStore.stop(); 22 settingsStore.stop();
23 } 23 }
24 }, 24 },
25 { 25 { fireImmediately: true },
26 fireImmediately: true,
27 },
28 ); 26 );
29} 27}
diff --git a/src/features/todos/index.js b/src/features/todos/index.js
index 1c6c9179a..55956d1d7 100644
--- a/src/features/todos/index.js
+++ b/src/features/todos/index.js
@@ -13,7 +13,9 @@ export default function initTodos(stores, actions) {
13 13
14 // Toggle todos feature 14 // Toggle todos feature
15 reaction( 15 reaction(
16 () => features.features.isTodosEnabled, 16 () => (
17 features.features.isTodosEnabled
18 ),
17 (isEnabled) => { 19 (isEnabled) => {
18 if (isEnabled) { 20 if (isEnabled) {
19 debug('Initializing `todos` feature'); 21 debug('Initializing `todos` feature');
@@ -23,8 +25,6 @@ export default function initTodos(stores, actions) {
23 todosStore.stop(); 25 todosStore.stop();
24 } 26 }
25 }, 27 },
26 { 28 { fireImmediately: true },
27 fireImmediately: true,
28 },
29 ); 29 );
30} 30}
diff --git a/src/features/workspaces/index.js b/src/features/workspaces/index.js
index 3db6de5b2..83e4d9049 100644
--- a/src/features/workspaces/index.js
+++ b/src/features/workspaces/index.js
@@ -12,7 +12,9 @@ export default function initWorkspaces(stores, actions) {
12 12
13 // Toggle workspace feature 13 // Toggle workspace feature
14 reaction( 14 reaction(
15 () => features.features.isWorkspaceEnabled, 15 () => (
16 features.features.isWorkspaceEnabled
17 ),
16 (isEnabled) => { 18 (isEnabled) => {
17 if (isEnabled && !workspaceStore.isFeatureActive) { 19 if (isEnabled && !workspaceStore.isFeatureActive) {
18 debug('Initializing `workspaces` feature'); 20 debug('Initializing `workspaces` feature');
@@ -23,8 +25,6 @@ export default function initWorkspaces(stores, actions) {
23 resetApiRequests(); 25 resetApiRequests();
24 } 26 }
25 }, 27 },
26 { 28 { fireImmediately: true },
27 fireImmediately: true,
28 },
29 ); 29 );
30} 30}