ListItemWithActions ignore enabled property of Action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
address-book-app (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
Adding an action to ListItemWithActions with enabled set to false is not behaivng as expected. Setting it to false should disable the action, but the property is ignored and the onTriggered event is called anyway. I'm attaching the simple test which is causing me troubles in the terminal app. If you want I can work on the issue but I need to know how to manage it from the UI/UX perspective (Simply hiding the action, changing the color).
ListItemWithAct
width: parent.width
height: units.gu(10)
Label{
text: "Terminal"
}
leftSideAction: Action {
iconName: "delete"
text: i18n.tr("Delete")
enabled: terminalTabs.length !== 1
onTriggered: {
}
}
description: | updated |
Changed in address-book-app: | |
importance: | Undecided → Low |
Changed in address-book-app (Ubuntu): | |
importance: | Undecided → Low |
no longer affects: | address-book-app |