← Back to team overview

touch-packages team mailing list archive

[Bug 1374643] Re: ListItemWithActions ignore enabled property of Action

 

** Also affects: address-book-app (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: address-book-app (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to address-book-app in
Ubuntu.
https://bugs.launchpad.net/bugs/1374643

Title:
  ListItemWithActions ignore enabled property of Action

Status in address-book-app:
  New
Status in address-book-app package in Ubuntu:
  New

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);
      }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/address-book-app/+bug/1374643/+subscriptions