summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-01-12 14:49:15 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-01-12 15:00:59 +0100
commit31881e14d9edf9e4239f0638d8694bba5eccb0a7 (patch)
treeaf707e08a36e39c4ec0040ea29f07a170bbb8fc5 /resources
parentMake device verification request dialogs easier to understand. (diff)
downloadnheko-31881e14d9edf9e4239f0638d8694bba5eccb0a7.tar.xz
Make it easier to understand, what button to click for verification from profile
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/UserProfile.qml11
-rw-r--r--resources/qml/device-verification/NewVerificationRequest.qml6
2 files changed, 13 insertions, 4 deletions
diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml

index fa8a190d..baff991e 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml
@@ -61,10 +61,18 @@ ApplicationWindow { text: qsTr("Verify") Layout.alignment: Qt.AlignHCenter enabled: !profile.isUserVerified - visible: !profile.isUserVerified + visible: !profile.isUserVerified && !profile.isSelf && profile.userVerificationEnabled onClicked: profile.verify() } + Image { + Layout.preferredHeight: 16 + Layout.preferredWidth: 16 + source: "image://colorimage/:/icons/icons/ui/lock.png?green" + visible: profile.isUserVerified + Layout.alignment: Qt.AlignHCenter + } + RowLayout { Layout.alignment: Qt.AlignHCenter spacing: 8 @@ -153,6 +161,7 @@ ApplicationWindow { Button { id: verifyButton + visible: (!profile.userVerificationEnabled && !profile.isSelf) || (profile.isSelf && (model.verificationStatus != VerificationStatus.VERIFIED || !profile.userVerificationEnabled)) text: (model.verificationStatus != VerificationStatus.VERIFIED) ? "Verify" : "Unverify" onClicked: { if (model.verificationStatus == VerificationStatus.VERIFIED) diff --git a/resources/qml/device-verification/NewVerificationRequest.qml b/resources/qml/device-verification/NewVerificationRequest.qml
index fae63371..a34038a9 100644 --- a/resources/qml/device-verification/NewVerificationRequest.qml +++ b/resources/qml/device-verification/NewVerificationRequest.qml
@@ -10,6 +10,8 @@ Pane { spacing: 16 Label { + // Self verification + Layout.maximumWidth: 400 Layout.fillHeight: true Layout.fillWidth: true @@ -21,14 +23,12 @@ Pane { else return qsTr("To ensure that no malicious user can eavesdrop on your encrypted communications you can verify the other party."); } else { - // Self verification - if (!flow.isSelfVerification && flow.isDeviceVerification) return qsTr("%1 has requested to verify their device %2.").arg(flow.userId).arg(flow.deviceId); else if (!flow.isSelfVerification && !flow.isDeviceVerification) return qsTr("%1 using the device %2 has requested to be verified.").arg(flow.userId).arg(flow.deviceId); else - return qsTr("Your devices (%1) has requested to be verified.").arg(flow.deviceId); + return qsTr("Your device (%1) has requested to be verified.").arg(flow.deviceId); } } color: colors.text