diff options
author | 2018-11-22 11:36:11 +0100 | |
---|---|---|
committer | 2018-11-22 11:36:11 +0100 | |
commit | fd7954fef99d59ca0aa9f2b468afea3463ef2202 (patch) | |
tree | dd83cc2efd0e8ec54679b4db80ed1b5dd086feb6 /src/stores | |
parent | Fix isFullScreen typo (diff) | |
download | ferdium-app-fd7954fef99d59ca0aa9f2b468afea3463ef2202.tar.gz ferdium-app-fd7954fef99d59ca0aa9f2b468afea3463ef2202.tar.zst ferdium-app-fd7954fef99d59ca0aa9f2b468afea3463ef2202.zip |
feat(App): Add option to enable dark mode for supported services
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index c5822968a..cdb2db142 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -214,6 +214,14 @@ export default class ServicesStore extends Store { | |||
214 | await request._promise; | 214 | await request._promise; |
215 | this.actionStatus = request.result.status; | 215 | this.actionStatus = request.result.status; |
216 | 216 | ||
217 | if (service.isEnabled) { | ||
218 | this._sendIPCMessage({ | ||
219 | serviceId, | ||
220 | channel: 'service-settings-update', | ||
221 | args: newData, | ||
222 | }); | ||
223 | } | ||
224 | |||
217 | if (redirect) { | 225 | if (redirect) { |
218 | this.stores.router.push('/settings/services'); | 226 | this.stores.router.push('/settings/services'); |
219 | gaEvent('Service', 'update', service.recipe.id); | 227 | gaEvent('Service', 'update', service.recipe.id); |