mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
Clean up verification pages a bit
This commit is contained in:
parent
d4dccc8e36
commit
51964c4fd7
9 changed files with 17 additions and 122 deletions
|
@ -25,15 +25,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
text: qsTr("Deny")
|
text: qsTr("Deny")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
flow.cancelVerification(DeviceVerificationFlow.User);
|
flow.cancelVerification(DeviceVerificationFlow.User);
|
||||||
deviceVerificationList.remove(tran_id);
|
deviceVerificationList.remove(tran_id);
|
||||||
|
@ -46,18 +38,10 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: qsTr("Accept")
|
text: qsTr("Accept")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
stack.replace(awaitingVerificationRequestAccept);
|
stack.replace(awaitingVerificationRequestAccept);
|
||||||
isRequest?flow.sendVerificationReady():flow.acceptVerificationRequest();
|
flow.sender ?flow.sendVerificationReady():flow.acceptVerificationRequest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,15 +25,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
text: qsTr("Cancel")
|
text: qsTr("Cancel")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
flow.cancelVerification(DeviceVerificationFlow.User);
|
flow.cancelVerification(DeviceVerificationFlow.User);
|
||||||
deviceVerificationList.remove(tran_id);
|
deviceVerificationList.remove(tran_id);
|
||||||
|
|
|
@ -25,15 +25,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
text: qsTr("Cancel")
|
text: qsTr("Cancel")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
flow.cancelVerification(DeviceVerificationFlow.User);
|
flow.cancelVerification(DeviceVerificationFlow.User);
|
||||||
deviceVerificationList.remove(tran_id);
|
deviceVerificationList.remove(tran_id);
|
||||||
|
|
|
@ -43,15 +43,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
text: qsTr("They do not match!")
|
text: qsTr("They do not match!")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
flow.cancelVerification(DeviceVerificationFlow.MismatchedSAS);
|
flow.cancelVerification(DeviceVerificationFlow.MismatchedSAS);
|
||||||
deviceVerificationList.remove(tran_id);
|
deviceVerificationList.remove(tran_id);
|
||||||
|
@ -64,15 +56,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: qsTr("They match!")
|
text: qsTr("They match!")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: { stack.replace(awaitingVerificationConfirmation); flow.sendVerificationMac(); }
|
onClicked: { stack.replace(awaitingVerificationConfirmation); flow.sendVerificationMac(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,15 +123,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
text: qsTr("They do not match!")
|
text: qsTr("They do not match!")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
flow.cancelVerification(DeviceVerificationFlow.MismatchedSAS);
|
flow.cancelVerification(DeviceVerificationFlow.MismatchedSAS);
|
||||||
deviceVerificationList.remove(tran_id);
|
deviceVerificationList.remove(tran_id);
|
||||||
|
@ -144,15 +136,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: qsTr("They match!")
|
text: qsTr("They match!")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: { stack.replace(awaitingVerificationConfirmation); flow.sendVerificationMac(); }
|
onClicked: { stack.replace(awaitingVerificationConfirmation); flow.sendVerificationMac(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,15 +32,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
text: qsTr("Cancel")
|
text: qsTr("Cancel")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
deviceVerificationList.remove(tran_id);
|
deviceVerificationList.remove(tran_id);
|
||||||
flow.deleteFlow();
|
flow.deleteFlow();
|
||||||
|
@ -53,15 +45,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: qsTr("Start verification")
|
text: qsTr("Start verification")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
stack.replace(awaitingVerificationRequestAccept);
|
stack.replace(awaitingVerificationRequestAccept);
|
||||||
flow.sender ?flow.sendVerificationRequest():flow.startVerificationRequest(); }
|
flow.sender ?flow.sendVerificationRequest():flow.startVerificationRequest(); }
|
||||||
|
|
|
@ -23,15 +23,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: qsTr("Close")
|
text: qsTr("Close")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
deviceVerificationList.remove(tran_id);
|
deviceVerificationList.remove(tran_id);
|
||||||
dialog.destroy();
|
dialog.destroy();
|
||||||
|
|
|
@ -21,18 +21,9 @@ Pane {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
id: timedOutCancel
|
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
text: qsTr("Close")
|
text: qsTr("Close")
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
deviceVerificationList.remove(tran_id);
|
deviceVerificationList.remove(tran_id);
|
||||||
flow.deleteFlow();
|
flow.deleteFlow();
|
||||||
|
|
|
@ -23,15 +23,7 @@ Pane {
|
||||||
Button {
|
Button {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: qsTr("Close")
|
text: qsTr("Close")
|
||||||
palette {
|
|
||||||
button: "white"
|
|
||||||
}
|
|
||||||
contentItem: Text {
|
|
||||||
text: parent.text
|
|
||||||
color: "black"
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
deviceVerificationList.remove(tran_id);
|
deviceVerificationList.remove(tran_id);
|
||||||
if(flow) flow.deleteFlow();
|
if(flow) flow.deleteFlow();
|
||||||
|
|
Loading…
Reference in a new issue