diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-11-12 16:23:15 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-03-14 13:58:44 +0100 |
| commit | a4a064bdbadaa3c77a63b2deac06d2948246e808 (patch) | |
| tree | 3c164926885b74f2318d4d0daf3f135741c56d68 /gui/src/shared | |
| parent | 61cacab42463bd0913905c31e5da4a69a4c359c7 (diff) | |
| download | mullvadvpn-a4a064bdbadaa3c77a63b2deac06d2948246e808.tar.xz mullvadvpn-a4a064bdbadaa3c77a63b2deac06d2948246e808.zip | |
Switch to using device removal daemon event for device list updates
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/daemon-rpc-types.ts | 3 | ||||
| -rw-r--r-- | gui/src/shared/ipc-schema.ts | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts index 61a068c08e..6fe598c7a0 100644 --- a/gui/src/shared/daemon-rpc-types.ts +++ b/gui/src/shared/daemon-rpc-types.ts @@ -105,7 +105,8 @@ export type DaemonEvent = | { settings: ISettings } | { relayList: IRelayList } | { appVersionInfo: IAppVersionInfo } - | { deviceConfig: DeviceConfig }; + | { deviceConfig: DeviceConfig } + | { deviceRemoval: Array<IDevice> }; export interface ITunnelStateRelayInfo { endpoint: ITunnelEndpoint; diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts index 6ea154bf89..93947bee62 100644 --- a/gui/src/shared/ipc-schema.ts +++ b/gui/src/shared/ipc-schema.ts @@ -168,6 +168,7 @@ export const ipcSchema = { account: { '': notifyRenderer<IAccountData | undefined>(), device: notifyRenderer<DeviceConfig>(), + devices: notifyRenderer<Array<IDevice>>(), create: invoke<void, string>(), login: invoke<AccountToken, void>(), logout: invoke<void, void>(), |
