From b396096cd217130841802ee65652b088c2821b6a Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 27 Apr 2020 18:35:51 +0100 Subject: [PATCH] Fix set up encryption toast to have use "set up" as action This changes the "set up encryption" toast to use "set up" as the primary action button, instead of "upgrade". Other toasts that do use text about upgrading will keep their primary action text of "upgrade" as before. Fixes https://github.com/vector-im/riot-web/issues/13231 --- src/components/views/toasts/SetupEncryptionToast.js | 1 + src/i18n/strings/en_EN.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/toasts/SetupEncryptionToast.js b/src/components/views/toasts/SetupEncryptionToast.js index 3c1f42b526..75fd55378c 100644 --- a/src/components/views/toasts/SetupEncryptionToast.js +++ b/src/components/views/toasts/SetupEncryptionToast.js @@ -90,6 +90,7 @@ export default class SetupEncryptionToast extends React.PureComponent { getSetupCaption() { switch (this.props.kind) { case 'set_up_encryption': + return _t('Set up'); case 'upgrade_encryption': case 'upgrade_ssss': return _t('Upgrade'); diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index bd4c8f58c8..9c0468733e 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -561,6 +561,7 @@ "Verify yourself & others to keep your chats safe": "Verify yourself & others to keep your chats safe", "Other users may not trust it": "Other users may not trust it", "Update your secure storage": "Update your secure storage", + "Set up": "Set up", "Upgrade": "Upgrade", "Verify": "Verify", "Later": "Later", @@ -2227,7 +2228,6 @@ "Unable to create key backup": "Unable to create key backup", "Without setting up Secure Message Recovery, you'll lose your secure message history when you log out.": "Without setting up Secure Message Recovery, you'll lose your secure message history when you log out.", "If you don't want to set this up now, you can later in Settings.": "If you don't want to set this up now, you can later in Settings.", - "Set up": "Set up", "Don't ask again": "Don't ask again", "New Recovery Method": "New Recovery Method", "A new recovery passphrase and key for Secure Messages have been detected.": "A new recovery passphrase and key for Secure Messages have been detected.",