ListItemWithActions ignore enabled property of Action

Bug #1374643 reported by Filippo Scognamiglio
6
This bug affects 1 person
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).

ListItemWithActions{
    width: parent.width
    height: units.gu(10)

    Label{
        text: "Terminal"
    }

    leftSideAction: Action {
    iconName: "delete"
    text: i18n.tr("Delete")
    enabled: terminalTabs.length !== 1
    onTriggered: {
        deleteTab(index);
    }
}

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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.