diff options
author | 2021-10-02 09:24:32 +0200 | |
---|---|---|
committer | 2021-10-02 09:24:32 +0200 | |
commit | bfe8847d72cd0893230f2e654242658214943e61 (patch) | |
tree | 3384b02ebad7a74cbb106ddd95546e0e24ff0bb8 /src/features/settingsWS | |
parent | fix: Fix navigation shortcut accelerator for non-macos (fixes #1172) (#2012) (diff) | |
download | ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.tar.gz ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.tar.zst ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.zip |
chore: convert various files from JS to TS (#2010)
Diffstat (limited to 'src/features/settingsWS')
-rwxr-xr-x | src/features/settingsWS/actions.ts (renamed from src/features/settingsWS/actions.js) | 0 | ||||
-rwxr-xr-x | src/features/settingsWS/index.ts (renamed from src/features/settingsWS/index.js) | 11 | ||||
-rwxr-xr-x | src/features/settingsWS/state.ts (renamed from src/features/settingsWS/state.js) | 0 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/features/settingsWS/actions.js b/src/features/settingsWS/actions.ts index 631670c8a..631670c8a 100755 --- a/src/features/settingsWS/actions.js +++ b/src/features/settingsWS/actions.ts | |||
diff --git a/src/features/settingsWS/index.js b/src/features/settingsWS/index.ts index 7771421d6..9bb206d82 100755 --- a/src/features/settingsWS/index.js +++ b/src/features/settingsWS/index.ts | |||
@@ -5,15 +5,16 @@ const debug = require('debug')('Ferdi:feature:settingsWS'); | |||
5 | 5 | ||
6 | export const settingsStore = new SettingsWSStore(); | 6 | export const settingsStore = new SettingsWSStore(); |
7 | 7 | ||
8 | export default function initSettingsWebSocket(stores, actions) { | 8 | export default function initSettingsWebSocket( |
9 | stores: { features: any }, | ||
10 | actions: any, | ||
11 | ) { | ||
9 | const { features } = stores; | 12 | const { features } = stores; |
10 | 13 | ||
11 | // Toggle SettingsWebSocket feature | 14 | // Toggle SettingsWebSocket feature |
12 | reaction( | 15 | reaction( |
13 | () => ( | 16 | () => features.features.isSettingsWSEnabled, |
14 | features.features.isSettingsWSEnabled | 17 | isEnabled => { |
15 | ), | ||
16 | (isEnabled) => { | ||
17 | if (isEnabled) { | 18 | if (isEnabled) { |
18 | debug('Initializing `settingsWS` feature'); | 19 | debug('Initializing `settingsWS` feature'); |
19 | settingsStore.start(stores, actions); | 20 | settingsStore.start(stores, actions); |
diff --git a/src/features/settingsWS/state.js b/src/features/settingsWS/state.ts index 7b16b2b6e..7b16b2b6e 100755 --- a/src/features/settingsWS/state.js +++ b/src/features/settingsWS/state.ts | |||