Improve verification method choosing
This commit is contained in:
@@ -63,7 +63,7 @@ Kirigami.Page {
|
|||||||
when: root.session.state === KeyVerificationSession.READY
|
when: root.session.state === KeyVerificationSession.READY
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: stateLoader
|
target: stateLoader
|
||||||
sourceComponent: emojiVerificationComponent
|
sourceComponent: chooseVerificationComponent
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -152,15 +152,22 @@ Kirigami.Page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: emojiVerificationComponent
|
id: chooseVerificationComponent
|
||||||
Delegates.RoundedItemDelegate {
|
Item {
|
||||||
id: emojiVerification
|
ColumnLayout {
|
||||||
text: i18n("Emoji Verification")
|
anchors.centerIn: parent
|
||||||
contentItem: Delegates.SubtitleContentItem {
|
spacing: Kirigami.Units.largeSpacing
|
||||||
subtitle: i18n("Compare a set of emoji on both devices")
|
QQC2.Label {
|
||||||
itemDelegate: emojiVerification
|
text: i18nc("@info", "Choose a verification method to continue")
|
||||||
|
}
|
||||||
|
QQC2.Button {
|
||||||
|
id: emojiVerification
|
||||||
|
text: i18nc("@action:button", "Emoji Verification")
|
||||||
|
icon.name: "smiley"
|
||||||
|
onClicked: root.session.sendStartSas()
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
}
|
||||||
}
|
}
|
||||||
onClicked: root.session.sendStartSas()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user