aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-11-22 11:36:11 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-11-22 11:36:11 +0100
commitfd7954fef99d59ca0aa9f2b468afea3463ef2202 (patch)
treedd83cc2efd0e8ec54679b4db80ed1b5dd086feb6 /src/stores/ServicesStore.js
parentFix isFullScreen typo (diff)
downloadferdium-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/ServicesStore.js')
-rw-r--r--src/stores/ServicesStore.js8
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);