← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1432790] [NEW] Action directive does not update angular expressions

 

Public bug reported:

The angular Action directive uses transclude to clone the innerHTML and
prepend it once. However, when the data model is updated, the expression
inside the innerHTML does not get updated.

Example:
<action
  button-type="menu-item"
  action-classes="'btn-default'"
  callback="actions.enable.toggle" item="user">
  {$ user.enabled? 'Enable': 'Disable' $}
</action>

When user.enabled is updated, the 'Enable' and 'Disable' label does not.

** Affects: horizon
     Importance: Undecided
     Assignee: Kelly Domico (kelly-domico)
         Status: New


** Tags: angular ui

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1432790

Title:
  Action directive does not update angular expressions

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  The angular Action directive uses transclude to clone the innerHTML
  and prepend it once. However, when the data model is updated, the
  expression inside the innerHTML does not get updated.

  Example:
  <action
    button-type="menu-item"
    action-classes="'btn-default'"
    callback="actions.enable.toggle" item="user">
    {$ user.enabled? 'Enable': 'Disable' $}
  </action>

  When user.enabled is updated, the 'Enable' and 'Disable' label does
  not.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1432790/+subscriptions


Follow ups

References