Add back button to SSO login

This commit is contained in:
Tobias Fella
2022-09-23 20:05:28 +02:00
parent 058e8034d9
commit 055deb4115

View File

@@ -26,15 +26,23 @@ LoginStep {
processed("qrc:/imports/NeoChat/Component/Login/Loading.qml")
}
}
RowLayout {
QQC2.Button {
text: i18nc("@action:button", "Back")
QQC2.Button {
text: i18n("Login")
onClicked: {
LoginHelper.loginWithSso()
root.showMessage(i18n("Complete the authentication steps in your browser"))
onClicked: {
module.source = "qrc:/imports/NeoChat/Component/Login/Login.qml"
}
}
QQC2.Button {
text: i18n("Login")
onClicked: {
LoginHelper.loginWithSso()
root.showMessage(i18n("Complete the authentication steps in your browser"))
}
Component.onCompleted: forceActiveFocus()
Keys.onReturnPressed: clicked()
}
Component.onCompleted: forceActiveFocus()
Keys.onReturnPressed: clicked()
}
}
}