diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-11-07 11:06:02 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-11-07 11:06:02 +0100 |
| commit | 3b8e28cd91aaa59e236a4c4875d9cb43e823042f (patch) | |
| tree | fd70a5d3702b45466b917446c037328e1e68f1c4 /gui/src/shared | |
| parent | 2968800c8da2877d7270bef512e543c4dee84223 (diff) | |
| parent | d20b3826f313c91da881c31c1fd3eb17a81ff044 (diff) | |
| download | mullvadvpn-3b8e28cd91aaa59e236a4c4875d9cb43e823042f.tar.xz mullvadvpn-3b8e28cd91aaa59e236a4c4875d9cb43e823042f.zip | |
Merge branch 'make-dns-blockers-collapsible'
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/ipc-schema.ts | 3 | ||||
| -rw-r--r-- | gui/src/shared/ipc-types.ts | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts index 85c7f2cabc..210e85e007 100644 --- a/gui/src/shared/ipc-schema.ts +++ b/gui/src/shared/ipc-schema.ts @@ -34,7 +34,6 @@ import { ICurrentAppVersionInfo, IHistoryObject, IWindowShapeParameters, - ScrollPositions, } from './ipc-types'; export interface ITranslations { @@ -76,7 +75,6 @@ export interface IAppStateSnapshot { changelog: IChangelog; forceShowChanges: boolean; navigationHistory?: IHistoryObject; - scrollPositions: ScrollPositions; } // The different types of requests are: @@ -130,7 +128,6 @@ export const ipcSchema = { navigation: { reset: notifyRenderer<void>(), setHistory: send<IHistoryObject>(), - setScrollPositions: send<ScrollPositions>(), }, daemon: { isPerformingPostUpgrade: notifyRenderer<boolean>(), diff --git a/gui/src/shared/ipc-types.ts b/gui/src/shared/ipc-types.ts index 2b42f42b0e..81ca28b1ac 100644 --- a/gui/src/shared/ipc-types.ts +++ b/gui/src/shared/ipc-types.ts @@ -13,8 +13,13 @@ export interface IWindowShapeParameters { export type IChangelog = Array<string>; +export interface LocationState { + scrollPosition: [number, number]; + expandedSections: Record<string, boolean>; +} + export interface IHistoryObject { - entries: Location<unknown>[]; + entries: Location<LocationState>[]; index: number; lastAction: Action; } |
