diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-20 19:13:45 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-02-08 21:43:16 +0100 |
commit | cef1c2fd221e81424195026645386370662ef398 (patch) | |
tree | 77fc9d044adef735adb2c2acc0ba3e74858aa1f8 /packages/renderer/src/stores/SharedStore.ts | |
parent | refactor: Rename main services to infrastructure (diff) | |
download | sophie-cef1c2fd221e81424195026645386370662ef398.tar.gz sophie-cef1c2fd221e81424195026645386370662ef398.tar.zst sophie-cef1c2fd221e81424195026645386370662ef398.zip |
feat: Add selected service field to SharedStore
Lets the main process see which service is currently selected.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/renderer/src/stores/SharedStore.ts')
-rw-r--r-- | packages/renderer/src/stores/SharedStore.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/renderer/src/stores/SharedStore.ts b/packages/renderer/src/stores/SharedStore.ts index baaf061..962f7e2 100644 --- a/packages/renderer/src/stores/SharedStore.ts +++ b/packages/renderer/src/stores/SharedStore.ts | |||
@@ -22,9 +22,11 @@ import { sharedStore as originalSharedStore } from '@sophie/shared'; | |||
22 | import { Instance, types } from 'mobx-state-tree'; | 22 | import { Instance, types } from 'mobx-state-tree'; |
23 | 23 | ||
24 | import { config } from './Config'; | 24 | import { config } from './Config'; |
25 | import { service } from './Service'; | ||
25 | 26 | ||
26 | export const sharedStore = originalSharedStore.props({ | 27 | export const sharedStore = originalSharedStore.props({ |
27 | config: types.optional(config, {}), | 28 | config: types.optional(config, {}), |
29 | selectedService: types.safeReference(service), | ||
28 | }); | 30 | }); |
29 | 31 | ||
30 | export interface SharedStore extends Instance<typeof sharedStore> {} | 32 | export interface SharedStore extends Instance<typeof sharedStore> {} |