From d41bae62f705b0e08a73bfba23d96189d4816a35 Mon Sep 17 00:00:00 2001 From: hydr063n Date: Tue, 29 Sep 2020 10:51:16 +0200 Subject: [PATCH] fix: convert styledbuttons to statusbuttons --- .../Profile/Sections/Ens/TermsAndConditions.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/app/AppLayouts/Profile/Sections/Ens/TermsAndConditions.qml b/ui/app/AppLayouts/Profile/Sections/Ens/TermsAndConditions.qml index d9035fefcd..c561f8fe02 100644 --- a/ui/app/AppLayouts/Profile/Sections/Ens/TermsAndConditions.qml +++ b/ui/app/AppLayouts/Profile/Sections/Ens/TermsAndConditions.qml @@ -3,6 +3,7 @@ import QtQuick.Layouts 1.3 import QtQuick.Controls 2.14 import "../../../../../imports" import "../../../../../shared" +import "../../../../../shared/status" Item { property string username: "" @@ -260,13 +261,13 @@ Item { } } - StyledButton { + StatusButton { anchors.bottom: parent.bottom anchors.bottomMargin: Style.current.padding anchors.left: parent.left anchors.leftMargin: Style.current.padding //% "Back" - label: qsTrId("back") + text: qsTrId("back") onClicked: backBtnClicked() } @@ -309,18 +310,18 @@ Item { } } - StyledButton { + StatusButton { id: startBtn anchors.bottom: parent.bottom anchors.bottomMargin: Style.current.padding anchors.right: parent.right anchors.rightMargin: Style.current.padding - label: parseFloat(utilsModel.getSNTBalance()) < 10 ? + text: parseFloat(utilsModel.getSNTBalance()) < 10 ? //% "Not enough SNT" qsTrId("not-enough-snt") : //% "Register" qsTrId("ens-register") - disabled: parseFloat(utilsModel.getSNTBalance()) < 10 || !termsAndConditionsCheckbox.checked + enabled: parseFloat(utilsModel.getSNTBalance()) >= 10 && termsAndConditionsCheckbox.checked onClicked: transactionDialog.open() } }