aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/todos
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/todos')
-rw-r--r--src/features/todos/preload.ts3
-rw-r--r--src/features/todos/store.ts9
2 files changed, 8 insertions, 4 deletions
diff --git a/src/features/todos/preload.ts b/src/features/todos/preload.ts
index 0d76efd7a..de594651b 100644
--- a/src/features/todos/preload.ts
+++ b/src/features/todos/preload.ts
@@ -9,9 +9,10 @@ debug('Preloading Todos Webview');
9 9
10let hostMessageListener = ({ action }) => { 10let hostMessageListener = ({ action }) => {
11 switch (action) { 11 switch (action) {
12 case 'todos:initialize-as-service': 12 case 'todos:initialize-as-service': {
13 ipcRenderer.sendToHost('hello'); 13 ipcRenderer.sendToHost('hello');
14 break; 14 break;
15 }
15 default: 16 default:
16 } 17 }
17}; 18};
diff --git a/src/features/todos/store.ts b/src/features/todos/store.ts
index bff099eb1..94be4db6a 100644
--- a/src/features/todos/store.ts
+++ b/src/features/todos/store.ts
@@ -197,13 +197,15 @@ export default class TodoStore extends FeatureStore {
197 }) => { 197 }) => {
198 debug('_handleClientMessage', channel, message); 198 debug('_handleClientMessage', channel, message);
199 switch (message.action) { 199 switch (message.action) {
200 case 'todos:initialized': 200 case 'todos:initialized': {
201 this._onTodosClientInitialized(); 201 this._onTodosClientInitialized();
202 break; 202 break;
203 case 'todos:goToService': 203 }
204 case 'todos:goToService': {
204 this._goToService(message.data); 205 this._goToService(message.data);
205 break; 206 break;
206 default: 207 }
208 default: {
207 debug('Other message received', channel, message); 209 debug('Other message received', channel, message);
208 if (this.stores.services.isTodosServiceAdded && this.actions) { 210 if (this.stores.services.isTodosServiceAdded && this.actions) {
209 this.actions.service.handleIPCMessage({ 211 this.actions.service.handleIPCMessage({
@@ -212,6 +214,7 @@ export default class TodoStore extends FeatureStore {
212 args: message, 214 args: message,
213 }); 215 });
214 } 216 }
217 }
215 } 218 }
216 }; 219 };
217 220