aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/settingsWS/index.ts
diff options
context:
space:
mode:
authorLibravatar Abin Mn <abinmn619@gmail.com>2021-10-26 21:18:20 +0530
committerLibravatar GitHub <noreply@github.com>2021-10-26 21:18:20 +0530
commit91c69428ed0dc2dd26b00c6dd5a6684f25515a34 (patch)
tree062a9a4946aa1367263533682ee59e795ea97234 /src/features/settingsWS/index.ts
parentAdd feature to display service name under service icon when the toggle for it... (diff)
downloadferdium-app-91c69428ed0dc2dd26b00c6dd5a6684f25515a34.tar.gz
ferdium-app-91c69428ed0dc2dd26b00c6dd5a6684f25515a34.tar.zst
ferdium-app-91c69428ed0dc2dd26b00c6dd5a6684f25515a34.zip
Cleanup/remove feature toggle for todo, workspace, service proxy (#2134)
* Remove DEFAULT_FEATURES_CONFIG from config * Remove static controller Co-authored-by: Madhuri B <MadhuriBandanadam@users.noreply.github.com>
Diffstat (limited to 'src/features/settingsWS/index.ts')
-rwxr-xr-xsrc/features/settingsWS/index.ts28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/features/settingsWS/index.ts b/src/features/settingsWS/index.ts
deleted file mode 100755
index 9bb206d82..000000000
--- a/src/features/settingsWS/index.ts
+++ /dev/null
@@ -1,28 +0,0 @@
1import { reaction } from 'mobx';
2import { SettingsWSStore } from './store';
3
4const debug = require('debug')('Ferdi:feature:settingsWS');
5
6export const settingsStore = new SettingsWSStore();
7
8export default function initSettingsWebSocket(
9 stores: { features: any },
10 actions: any,
11) {
12 const { features } = stores;
13
14 // Toggle SettingsWebSocket feature
15 reaction(
16 () => features.features.isSettingsWSEnabled,
17 isEnabled => {
18 if (isEnabled) {
19 debug('Initializing `settingsWS` feature');
20 settingsStore.start(stores, actions);
21 } else if (settingsStore) {
22 debug('Disabling `settingsWS` feature');
23 settingsStore.stop();
24 }
25 },
26 { fireImmediately: true },
27 );
28}