From 08067432c6115a669eafbca7088ba2eaf6fa4cae Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Thu, 2 Dec 2021 08:54:40 +0100 Subject: [PATCH] disable other manageButtons when actions is performed Still need to make this transfer to the detaile card Contributes to: CURA-8587 --- plugins/Marketplace/resources/qml/ManageButton.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/Marketplace/resources/qml/ManageButton.qml b/plugins/Marketplace/resources/qml/ManageButton.qml index b13a31c5cf..035c369fd8 100644 --- a/plugins/Marketplace/resources/qml/ManageButton.qml +++ b/plugins/Marketplace/resources/qml/ManageButton.qml @@ -16,6 +16,8 @@ RowLayout property string busyPrimaryText: busyMessageText.text property string busySecondaryText: busyMessageText.text property string mainState: "primary" + property bool enabled: true + readonly property bool busy: state == "busy" signal clicked(bool primary_action) @@ -25,6 +27,7 @@ RowLayout { id: primaryButton visible: false + enabled: manageButton.enabled onClicked: { @@ -37,6 +40,7 @@ RowLayout { id: secondaryButton visible: false + enabled: manageButton.enabled onClicked: {