From 5419b4279b1cc3eaae16cd6e7aaab1822f4da412 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 4 Jan 2019 11:16:06 -0600 Subject: [PATCH] Simplify create key backup maze The download / copy actions to store the new recovery key now send you forward (the most likely case) with a Back button in case you wanted to also do the other storing type. --- .../keybackup/CreateKeyBackupDialog.js | 19 ++++++------------- src/i18n/strings/en_EN.json | 1 - 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/async-components/views/dialogs/keybackup/CreateKeyBackupDialog.js b/src/async-components/views/dialogs/keybackup/CreateKeyBackupDialog.js index a097e84cdb..c593a9b3ea 100644 --- a/src/async-components/views/dialogs/keybackup/CreateKeyBackupDialog.js +++ b/src/async-components/views/dialogs/keybackup/CreateKeyBackupDialog.js @@ -180,7 +180,7 @@ export default React.createClass({ }); }, - _onKeepItSafeGotItClick: function() { + _onKeepItSafeBackClick: function() { this.setState({ phase: PHASE_SHOWKEY, }); @@ -342,8 +342,6 @@ export default React.createClass({ }, _renderPhaseShowKey: function() { - const DialogButtons = sdk.getComponent('views.elements.DialogButtons'); - let bodyText; if (this.state.setPassPhrase) { bodyText = _t("As a safety net, you can use it to restore your encrypted message history if you forget your Recovery Passphrase."); @@ -372,12 +370,6 @@ export default React.createClass({

-
- ; }, @@ -402,10 +394,11 @@ export default React.createClass({
  • {_t("Save it on a USB key or backup drive", {}, {b: s => {s}})}
  • {_t("Copy it to your personal cloud storage", {}, {b: s => {s}})}
  • - + + + ; }, diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 8b05f5c9ce..85cb8c9868 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1382,7 +1382,6 @@ "Print it and store it somewhere safe": "Print it and store it somewhere safe", "Save it on a USB key or backup drive": "Save it on a USB key or backup drive", "Copy it to your personal cloud storage": "Copy it to your personal cloud storage", - "Got it": "Got it", "Backup created": "Backup created", "Your encryption keys are now being backed up to your Homeserver.": "Your encryption keys are now being backed up to your Homeserver.", "Without setting up Secure Message Recovery, you won't be able to restore your encrypted message history if you log out or use another device.": "Without setting up Secure Message Recovery, you won't be able to restore your encrypted message history if you log out or use another device.",