hz-expand-detail cannot be used outside of hz-table
Bug #1580809 reported by
Tyr Johanson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Matt Borland |
Bug Description
hz-expand-detail is a reasonably handy directive that allows row expansion. It was modified to allow a table user to detect row expansion. However, this modification added a require of the hz-table controller.
This is not necessary, is difficult to maintain and prevents the reuse of this with anything other than hz-table.
Instead, the directive should simply emit an event and any parent that cares can listen for it.
description: | updated |
Changed in horizon: | |
assignee: | Tyr Johanson (tyr-6) → Matt Borland (palecrow) |
Changed in horizon: | |
importance: | Undecided → Medium |
milestone: | none → newton-2 |
To post a comment you must log in.
Here is the change that attempted to improve hz-expand-detail
https:/ /review. openstack. org/#/c/ 287473/
Notice how it requires the hzCtrl so that it can call a function? This is very problematic, instead it should simple emit an event that hz-table listens for, if it cares.
To do it well, we might consider modifying the table define a standard set of events that it listens to from its children, and standard events its children can listen for.