hz-cell doesn't handle updates to data
Bug #1593879 reported by
Matt Borland
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Unless you're using a template, hz-cell doesn't handle updates to data. This is because there is nothing to tell Angular that anything of value has changed. It's evaluated once and then done.
To solve this, instead of using $scope.column, just pass the column in explicitly as a parameter. Angular will then know that it's valuable.
You can see this in the implementation of Images (https:/
tags: | added: angularjs |
Changed in horizon: | |
importance: | Undecided → Low |
Changed in horizon: | |
status: | New → Confirmed |
tags: | added: ux |
To post a comment you must log in.
Note, if the idea is that we use the table's track-by, it will update all row elements...so perhaps this is not a huge concern. Either way, it seems a better model to pass in the parameter than to assume it's on scope.