diff options
author | Dominik Guzei <dominik.guzei@gmail.com> | 2019-09-04 16:29:27 +0200 |
---|---|---|
committer | Dominik Guzei <dominik.guzei@gmail.com> | 2019-09-04 16:29:27 +0200 |
commit | 0fdf2677a9d01123b4d0a30ad10f717f972c6749 (patch) | |
tree | 1e4cfdb0de80b5355dcd7054b43e75bec4c528f0 /src/features/todos/store.js | |
parent | Resend todos config on Franz setting changes (diff) | |
download | ferdium-app-0fdf2677a9d01123b4d0a30ad10f717f972c6749.tar.gz ferdium-app-0fdf2677a9d01123b4d0a30ad10f717f972c6749.tar.zst ferdium-app-0fdf2677a9d01123b4d0a30ad10f717f972c6749.zip |
Add locale to todos config
Diffstat (limited to 'src/features/todos/store.js')
-rw-r--r-- | src/features/todos/store.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/features/todos/store.js b/src/features/todos/store.js index bb1df9415..242b38bf7 100644 --- a/src/features/todos/store.js +++ b/src/features/todos/store.js | |||
@@ -124,11 +124,13 @@ export default class TodoStore extends FeatureStore { | |||
124 | _onTodosClientInitialized = () => { | 124 | _onTodosClientInitialized = () => { |
125 | const { authToken } = this.stores.user; | 125 | const { authToken } = this.stores.user; |
126 | const { isDarkThemeActive } = this.stores.ui; | 126 | const { isDarkThemeActive } = this.stores.ui; |
127 | const { locale } = this.stores.app; | ||
127 | if (!this.webview) return; | 128 | if (!this.webview) return; |
128 | this.webview.send(IPC.TODOS_HOST_CHANNEL, { | 129 | this.webview.send(IPC.TODOS_HOST_CHANNEL, { |
129 | action: 'todos:configure', | 130 | action: 'todos:configure', |
130 | data: { | 131 | data: { |
131 | authToken, | 132 | authToken, |
133 | locale, | ||
132 | theme: isDarkThemeActive ? ThemeType.dark : ThemeType.default, | 134 | theme: isDarkThemeActive ? ThemeType.dark : ThemeType.default, |
133 | }, | 135 | }, |
134 | }); | 136 | }); |