disable other manageButtons when actions is performed

Still need to make this transfer to the detaile card

Contributes to: CURA-8587
This commit is contained in:
Jelle Spijker 2021-12-02 08:54:40 +01:00
parent ff5a4a4f5a
commit 08067432c6
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A

View file

@ -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:
{