summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-11-12 14:20:02 +0100
committerOskar Nyberg <oskar@mullvad.net>2022-03-14 13:58:44 +0100
commit8d03e12c3021d3c08bc3335f2e39f229d4b337fc (patch)
tree79c8d6a7697664a1423a559417d6ac38386f05c7 /gui/src/renderer/components
parent19f5328285cac20188a110f734a02d187ea94cb8 (diff)
downloadmullvadvpn-8d03e12c3021d3c08bc3335f2e39f229d4b337fc.tar.xz
mullvadvpn-8d03e12c3021d3c08bc3335f2e39f229d4b337fc.zip
Handle too many devices in login redirect
Diffstat (limited to 'gui/src/renderer/components')
-rw-r--r--gui/src/renderer/components/TooManyDevices.tsx16
1 files changed, 8 insertions, 8 deletions
diff --git a/gui/src/renderer/components/TooManyDevices.tsx b/gui/src/renderer/components/TooManyDevices.tsx
index 473ae4f53d..1075071cdd 100644
--- a/gui/src/renderer/components/TooManyDevices.tsx
+++ b/gui/src/renderer/components/TooManyDevices.tsx
@@ -146,7 +146,7 @@ export default function TooManyDevices() {
<AppButton.GreenButton onClick={continueLogin} disabled={devices.length === 5}>
{
// TRANSLATORS: Button for continuing login process.
- messages.pgettext('too-many-devices-view', 'Continue with login')
+ messages.pgettext('device-management', 'Continue with login')
}
</AppButton.GreenButton>
<AppButton.BlueButton onClick={cancel}>
@@ -225,7 +225,7 @@ function Device(props: IDeviceProps) {
<AppButton.RedButton key="remove" onClick={onRemove} disabled={deleting}>
{
// TRANSLATORS: Confirmation button when logging out other device.
- messages.pgettext('too-many-devices-view', 'Yes, log out device')
+ messages.pgettext('device-management', 'Yes, log out device')
}
</AppButton.RedButton>,
<AppButton.BlueButton key="back" onClick={hideConfirmation} disabled={deleting}>
@@ -241,7 +241,7 @@ function Device(props: IDeviceProps) {
{sprintf(
// TRANSLATORS: Text displayed above button which logs out another device.
messages.pgettext(
- 'too-many-devices-view',
+ 'device-management',
'Are you sure you want to log out of %(deviceName)s?',
),
{ deviceName: props.device.name },
@@ -251,7 +251,7 @@ function Device(props: IDeviceProps) {
{
// TRANSLATORS: Further information about consequences of logging out device.
messages.pgettext(
- 'too-many-devices-view',
+ 'device-management',
'This will delete all forwarded ports. Local settings will be saved.',
)
}
@@ -281,11 +281,11 @@ function getTitle(devices?: Array<IDevice>): string | undefined {
if (devices.length === 5) {
// TRANSLATORS: Page title informing user that the login failed due to too many registered
// TRANSLATORS: devices on account.
- return messages.pgettext('too-many-devices-view', 'Too many devices');
+ return messages.pgettext('device-management', 'Too many devices');
} else {
// TRANSLATORS: Page title informing user that enough devices has been removed to continue
// TRANSLATORS: login process.
- return messages.pgettext('too-many-devices-view', 'Super!');
+ return messages.pgettext('device-management', 'Super!');
}
} else {
return undefined;
@@ -296,12 +296,12 @@ function getSubtitle(devices?: Array<IDevice>): string | undefined {
if (devices) {
if (devices.length === 5) {
return messages.pgettext(
- 'too-many-devices-view',
+ 'device-management',
'You have too many active devices. Please log out of at least one by removing it from the list below. You can find the corresponding nickname under the device’s Account settings.',
);
} else {
return messages.pgettext(
- 'too-many-devices-view',
+ 'device-management',
'You can now continue logging in on this device.',
);
}