summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOliver <oliver@mohlin.dev>2025-10-10 11:37:32 +0200
committerTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-10-10 13:38:06 +0200
commit8a37621b86a9034641a2833d1d27aa626d7ecd29 (patch)
treea6ecb1e3533bd189937fd7d645757ea3e4c7f2a9
parent1d87509d1c001cf94b6d7821f4749b49ceec94f4 (diff)
downloadmullvadvpn-8a37621b86a9034641a2833d1d27aa626d7ecd29.tar.xz
mullvadvpn-8a37621b86a9034641a2833d1d27aa626d7ecd29.zip
Use same error message when fetching devices fails
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/components/views/login/LoginView.tsx4
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/components/views/manage-devices/components/devices-empty-state/DevicesEmptyState.tsx7
2 files changed, 3 insertions, 8 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/views/login/LoginView.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/views/login/LoginView.tsx
index 8e96d87d4d..7e6822dd06 100644
--- a/desktop/packages/mullvad-vpn/src/renderer/components/views/login/LoginView.tsx
+++ b/desktop/packages/mullvad-vpn/src/renderer/components/views/login/LoginView.tsx
@@ -254,9 +254,9 @@ class Login extends React.Component<IProps, IState> {
// TRANSLATORS: with too many registered devices.
return messages.pgettext('login-view', 'Too many devices');
case 'list-devices':
- // TRANSLATORS: Error message shown above login input when trying to login but the app fails
+ // TRANSLATORS: Error message shown trying to login but the app fails
// TRANSLATORS: to fetch the list of registered devices.
- return messages.pgettext('login-view', 'Failed to fetch list of devices');
+ return messages.gettext('Failed to fetch list of devices');
case 'communication':
return 'api.mullvad.net is blocked, please check your firewall';
default:
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/views/manage-devices/components/devices-empty-state/DevicesEmptyState.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/views/manage-devices/components/devices-empty-state/DevicesEmptyState.tsx
index 58c7b97518..16acd8cbf3 100644
--- a/desktop/packages/mullvad-vpn/src/renderer/components/views/manage-devices/components/devices-empty-state/DevicesEmptyState.tsx
+++ b/desktop/packages/mullvad-vpn/src/renderer/components/views/manage-devices/components/devices-empty-state/DevicesEmptyState.tsx
@@ -8,12 +8,7 @@ export function DevicesEmptyState() {
<EmptyState variant={isFetching ? 'loading' : 'error'} $alignSelf="stretch">
<EmptyState.StatusIcon />
<EmptyState.TextContainer>
- <EmptyState.Title>
- {
- // TRANSLATORS: Title text when devices could not be fetched.
- messages.pgettext('device-management', 'Failed to fetch list of devices')
- }
- </EmptyState.Title>
+ <EmptyState.Title>{messages.gettext('Failed to fetch list of devices')}</EmptyState.Title>
</EmptyState.TextContainer>
<EmptyState.Button onClick={refetchDevices}>
<EmptyState.Button.Text>