diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-01-27 10:44:30 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-01-27 10:44:30 +0100 |
| commit | c81d787c9588800688930c88d0a69fa3ee6a06e9 (patch) | |
| tree | 30ce7697bed480c889496632882b6cf0e9d50487 /gui/src/shared | |
| parent | bc7ebf12c08b0fa9a0d8ec2ec9db026b24a57080 (diff) | |
| parent | cb0791bce695f33590db55da8a8bc9e03f07869c (diff) | |
| download | mullvadvpn-c81d787c9588800688930c88d0a69fa3ee6a06e9.tar.xz mullvadvpn-c81d787c9588800688930c88d0a69fa3ee6a06e9.zip | |
Merge branch 'add-change-view'
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/gui-settings-state.ts | 4 | ||||
| -rw-r--r-- | gui/src/shared/ipc-schema.ts | 4 | ||||
| -rw-r--r-- | gui/src/shared/ipc-types.ts | 2 | ||||
| -rw-r--r-- | gui/src/shared/localization-contexts.ts | 1 |
4 files changed, 10 insertions, 1 deletions
diff --git a/gui/src/shared/gui-settings-state.ts b/gui/src/shared/gui-settings-state.ts index dc5bea66f5..e1286101b7 100644 --- a/gui/src/shared/gui-settings-state.ts +++ b/gui/src/shared/gui-settings-state.ts @@ -27,4 +27,8 @@ export interface IGuiSettingsState { // Conains a list of filepaths to applications added to the list of applications, in the split // tunneling view, by the user. browsedForSplitTunnelingApplications: Array<string>; + + // The last version that the changelog dialog was shown for. This is used to only show the + // changelog after upgrade. + changelogDisplayedForVersion: string; } diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts index cd39ac8c8a..0ed0985bf1 100644 --- a/gui/src/shared/ipc-schema.ts +++ b/gui/src/shared/ipc-schema.ts @@ -24,7 +24,7 @@ interface ILogEntry { message: string; } import { invoke, invokeSync, notifyRenderer, send } from './ipc-helpers'; -import { ICurrentAppVersionInfo, IWindowShapeParameters } from './ipc-types'; +import { IChangelog, ICurrentAppVersionInfo, IWindowShapeParameters } from './ipc-types'; export interface ITranslations { locale: string; @@ -60,6 +60,7 @@ export interface IAppStateSnapshot { translations: ITranslations; windowsSplitTunnelingApplications?: IApplication[]; macOsScrollbarVisibility?: MacOsScrollbarVisibility; + changelog: IChangelog; } // The different types of requests are: @@ -122,6 +123,7 @@ export const ipcSchema = { }, currentVersion: { '': notifyRenderer<ICurrentAppVersionInfo>(), + displayedChangelog: send<void>(), }, upgradeVersion: { '': notifyRenderer<IAppVersionInfo>(), diff --git a/gui/src/shared/ipc-types.ts b/gui/src/shared/ipc-types.ts index 691d54b61b..0624ac95cd 100644 --- a/gui/src/shared/ipc-types.ts +++ b/gui/src/shared/ipc-types.ts @@ -8,3 +8,5 @@ export interface ICurrentAppVersionInfo { export interface IWindowShapeParameters { arrowPosition?: number; } + +export type IChangelog = Array<string>; diff --git a/gui/src/shared/localization-contexts.ts b/gui/src/shared/localization-contexts.ts index bf458444ca..b402278571 100644 --- a/gui/src/shared/localization-contexts.ts +++ b/gui/src/shared/localization-contexts.ts @@ -1,4 +1,5 @@ export type LocalizationContexts = + | 'changelog' | 'accessibility' | 'login-view' | 'auth-failure' |
