diff options
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r-- | src/stores/ServicesStore.js | 14 |
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 | ||