From 657457c14bc1f49da33ddae8a51f9a7d5ac91cba Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Tue, 28 Jan 2020 11:13:09 +0000
Subject: [PATCH] Apply remainder of ux
---
.../views/right_panel/_EncryptionInfo.scss | 2 +
src/components/views/dialogs/ErrorDialog.js | 10 +-
.../views/right_panel/EncryptionPanel.js | 52 ++++++--
.../views/right_panel/VerificationPanel.js | 112 ++++++++++++------
.../views/verification/VerificationShowSas.js | 1 -
src/i18n/strings/en_EN.json | 12 +-
6 files changed, 139 insertions(+), 50 deletions(-)
diff --git a/res/css/views/right_panel/_EncryptionInfo.scss b/res/css/views/right_panel/_EncryptionInfo.scss
index 386eef8e7f..e13b1b6802 100644
--- a/res/css/views/right_panel/_EncryptionInfo.scss
+++ b/res/css/views/right_panel/_EncryptionInfo.scss
@@ -20,5 +20,7 @@ limitations under the License.
margin-top: 25px;
margin-bottom: 15px;
}
+
+ text-align: center;
}
}
diff --git a/src/components/views/dialogs/ErrorDialog.js b/src/components/views/dialogs/ErrorDialog.js
index 15c87990d0..fbc5509457 100644
--- a/src/components/views/dialogs/ErrorDialog.js
+++ b/src/components/views/dialogs/ErrorDialog.js
@@ -42,6 +42,7 @@ export default createReactClass({
button: PropTypes.string,
focus: PropTypes.bool,
onFinished: PropTypes.func.isRequired,
+ headerImage: PropTypes.string,
},
getDefaultProps: function() {
@@ -56,9 +57,12 @@ export default createReactClass({
render: function() {
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
return (
- {_t("Verify by comparing unique emoji.")} {_t("If you can't scan the code above, verify by comparing unique emoji.")}
+
+ Verify by emoji
Verify by emoji
Verify all users in a room to ensure it's secure.
-{ text }
+ +Setting up SAS verification...
); - } - } else if (request.done) { - return this.renderVerifiedPhase(); - } else if (request.cancelled) { - // TODO check if this matches target - // TODO should this be a MODAL? - returncancelled by {request.cancellingUserId}!
; + switch (this.props.phase) { + case PHASE_READY: + return this.renderQRPhase(); + case PHASE_STARTED: + if (this.state.sasEvent) { + const VerificationShowSas = sdk.getComponent('views.verification.VerificationShowSas'); + return