Add behaviour to sign in page buttons

It will now sign you in when you press that button. It doesn't automatically proceed to the next page when signed in though. For that I reckon I'll need to build that next page first, or at least the beginnings of it.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-05 13:22:33 +02:00
parent 3b62759ff2
commit c761820d52
No known key found for this signature in database
GPG key ID: 68F39EA88EEED5FF

View file

@ -136,11 +136,13 @@ Window
{
anchors.left: parent.left
text: catalog.i18nc("@button", "Sync materials with USB")
onClicked: swipeView.currentIndex = swipeView.count - 1 //Go to the last page, which is USB.
}
Cura.PrimaryButton
{
anchors.right: parent.right
text: catalog.i18nc("@button", "Sign in")
onClicked: Cura.API.account.login()
}
}
}