aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-12-07 22:39:12 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-12-07 22:39:12 +0100
commit65aaac06beac7f070a3a81adeffb8e1887d9f12b (patch)
treee2b4f452eef8c17198845e7a59c49b4fe28b1823 /src/stores
parentfeat(Service): Add option to change spellchecking language by service (diff)
downloadferdium-app-65aaac06beac7f070a3a81adeffb8e1887d9f12b.tar.gz
ferdium-app-65aaac06beac7f070a3a81adeffb8e1887d9f12b.tar.zst
ferdium-app-65aaac06beac7f070a3a81adeffb8e1887d9f12b.zip
chore(Recipe): Refactor recipe plugin
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/ServicesStore.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 99b091589..ccb4eed04 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -400,6 +400,18 @@ export default class ServicesStore extends Store {
400 const url = args[0]; 400 const url = args[0];
401 401
402 this.actions.app.openExternalUrl({ url }); 402 this.actions.app.openExternalUrl({ url });
403 } else if (channel === 'set-service-spellchecker-language') {
404 if (!args) {
405 console.warn('Did not receive locale');
406 } else {
407 this.actions.service.updateService({
408 serviceId,
409 serviceData: {
410 spellcheckerLanguage: args[0] === 'reset' ? '' : args[0],
411 },
412 redirect: false,
413 });
414 }
403 } 415 }
404 } 416 }
405 417
@@ -625,7 +637,7 @@ export default class ServicesStore extends Store {
625 const service = this.one(serviceId); 637 const service = this.one(serviceId);
626 638
627 if (service.webview) { 639 if (service.webview) {
628 service.webview.send('initializeRecipe', service); 640 service.webview.send('initialize-recipe', service);
629 } 641 }
630 } 642 }
631 643