From a4b084ad79142f0cf76433813fa5db55939e7d20 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Mon, 26 Oct 2020 10:23:36 -0400 Subject: [PATCH] fix: use the standard loading animation for generating accounts --- ui/onboarding/CreatePasswordModal.qml | 28 ++------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/ui/onboarding/CreatePasswordModal.qml b/ui/onboarding/CreatePasswordModal.qml index 17e8e2c220..b9bf278052 100644 --- a/ui/onboarding/CreatePasswordModal.qml +++ b/ui/onboarding/CreatePasswordModal.qml @@ -94,37 +94,14 @@ ModalPopup { anchors.bottom: popup.bottom anchors.left: parent.left - SVGImage { - id: loadingImg - visible: loading - anchors.top: submitBtn.top - anchors.topMargin: Style.current.padding - anchors.right: submitBtn.left - anchors.rightMargin: Style.current.padding - source: "../app/img/settings.svg" - width: 20 - height: 20 - fillMode: Image.Stretch - RotationAnimator { - target: loadingImg; - from: 0; - to: 360; - duration: 1200 - running: true - loops: Animation.Infinite - } - } - StatusButton { id: submitBtn anchors.bottom: parent.bottom anchors.topMargin: Style.current.padding anchors.right: parent.right - text: loading ? - //% "Logging in..." - qsTrId("logging-in...") : + state: loading ? "pending" : "default" //% "Create password" - qsTrId("create-password") + text: qsTrId("create-password") enabled: firstPasswordField.text !== "" && repeatPasswordField.text !== "" && !loading @@ -171,7 +148,6 @@ ModalPopup { errorSound.play() return } - // TODO this doesn't seem to work because the function freezes the view loading = true loginModel.isCurrentFlow = false; onboardingModel.isCurrentFlow = true;