summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-06-04 11:30:04 +0200
committerOskar Nyberg <oskar@mullvad.net>2020-06-04 11:30:04 +0200
commit0555ab065946ae5ef350bca56bcaaa3188b67320 (patch)
treef6f13fca93ea3bf3d2cb4ac82fc80173a6064972 /gui/src
parent37f9da7e45995d0f78539c800a399c22e7e5f135 (diff)
downloadmullvadvpn-0555ab065946ae5ef350bca56bcaaa3188b67320.tar.xz
mullvadvpn-0555ab065946ae5ef350bca56bcaaa3188b67320.zip
Rename all usages of currentIsSupported to just supported
A few places were missed when renaming it a while ago. currentIsBeta has also been renamed for more consistent naming.
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts6
-rw-r--r--gui/src/renderer/app.tsx2
-rw-r--r--gui/src/renderer/components/NotificationArea.tsx2
-rw-r--r--gui/src/renderer/containers/PreferencesPage.tsx2
-rw-r--r--gui/src/renderer/redux/version/actions.ts6
-rw-r--r--gui/src/renderer/redux/version/reducers.ts10
6 files changed, 14 insertions, 14 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index e905159bfb..d64ff7cf93 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -65,7 +65,7 @@ export interface ICurrentAppVersionInfo {
gui: string;
daemon: string;
isConsistent: boolean;
- currentIsBeta: boolean;
+ isBeta: boolean;
}
export interface IAppUpgradeInfo extends IAppVersionInfo {
@@ -138,7 +138,7 @@ class ApplicationMain {
daemon: '',
gui: '',
isConsistent: true,
- currentIsBeta: false,
+ isBeta: false,
};
private upgradeVersion: IAppUpgradeInfo = {
@@ -744,7 +744,7 @@ class ApplicationMain {
daemon: daemonVersion,
gui: guiVersion,
isConsistent: daemonVersion === guiVersion,
- currentIsBeta: guiVersion.includes('beta'),
+ isBeta: guiVersion.includes('beta'),
};
this.currentVersion = versionInfo;
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx
index f9d4130419..5c1623b67e 100644
--- a/gui/src/renderer/app.tsx
+++ b/gui/src/renderer/app.tsx
@@ -734,7 +734,7 @@ export default class AppRenderer {
this.reduxActions.version.updateVersion(
versionInfo.gui,
versionInfo.isConsistent,
- versionInfo.currentIsBeta,
+ versionInfo.isBeta,
);
}
diff --git a/gui/src/renderer/components/NotificationArea.tsx b/gui/src/renderer/components/NotificationArea.tsx
index 5187130a56..01607c3840 100644
--- a/gui/src/renderer/components/NotificationArea.tsx
+++ b/gui/src/renderer/components/NotificationArea.tsx
@@ -167,7 +167,7 @@ export default class NotificationArea extends Component<IProps, State> {
};
}
- if (!version.currentIsSupported && version.nextUpgrade) {
+ if (!version.supported && version.nextUpgrade) {
return {
visible: true,
type: 'unsupported-version',
diff --git a/gui/src/renderer/containers/PreferencesPage.tsx b/gui/src/renderer/containers/PreferencesPage.tsx
index 538c44dcfa..64799ed59b 100644
--- a/gui/src/renderer/containers/PreferencesPage.tsx
+++ b/gui/src/renderer/containers/PreferencesPage.tsx
@@ -11,7 +11,7 @@ const mapStateToProps = (state: IReduxState) => ({
autoStart: state.settings.autoStart,
allowLan: state.settings.allowLan,
showBetaReleases: state.settings.showBetaReleases,
- isBeta: state.version.currentIsBeta,
+ isBeta: state.version.isBeta,
autoConnect: state.settings.guiSettings.autoConnect,
enableSystemNotifications: state.settings.guiSettings.enableSystemNotifications,
monochromaticIcon: state.settings.guiSettings.monochromaticIcon,
diff --git a/gui/src/renderer/redux/version/actions.ts b/gui/src/renderer/redux/version/actions.ts
index 628bc2c39a..e2bb4a6513 100644
--- a/gui/src/renderer/redux/version/actions.ts
+++ b/gui/src/renderer/redux/version/actions.ts
@@ -13,7 +13,7 @@ export interface IUpdateVersionAction {
type: 'UPDATE_VERSION';
version: string;
consistent: boolean;
- currentIsBeta: boolean;
+ isBeta: boolean;
}
export type VersionAction = IUpdateLatestAction | IUpdateVersionAction;
@@ -28,13 +28,13 @@ function updateLatest(latestInfo: IUpdateLatestActionPayload): IUpdateLatestActi
function updateVersion(
version: string,
consistent: boolean,
- currentIsBeta: boolean,
+ isBeta: boolean,
): IUpdateVersionAction {
return {
type: 'UPDATE_VERSION',
version,
consistent,
- currentIsBeta,
+ isBeta,
};
}
diff --git a/gui/src/renderer/redux/version/reducers.ts b/gui/src/renderer/redux/version/reducers.ts
index 279b4ed6f4..c0ecd22a8e 100644
--- a/gui/src/renderer/redux/version/reducers.ts
+++ b/gui/src/renderer/redux/version/reducers.ts
@@ -2,8 +2,8 @@ import { ReduxAction } from '../store';
export interface IVersionReduxState {
current: string;
- currentIsSupported: boolean;
- currentIsBeta: boolean;
+ supported: boolean;
+ isBeta: boolean;
latest?: string;
latestStable?: string;
nextUpgrade: string | null;
@@ -12,8 +12,8 @@ export interface IVersionReduxState {
const initialState: IVersionReduxState = {
current: '',
- currentIsSupported: true,
- currentIsBeta: false,
+ supported: true,
+ isBeta: false,
latest: undefined,
latestStable: undefined,
nextUpgrade: null,
@@ -36,7 +36,7 @@ export default function (
...state,
current: action.version,
consistent: action.consistent,
- currentIsBeta: action.currentIsBeta,
+ isBeta: action.isBeta,
};
default: