open-nomad/ui/app/templates
Buck Doyle 09067b4eb7
UI: Fix client sorting (#6817)
There are two changes here, and some caveats/commentary:

1. The “State“ table column was actually sorting only by status. The state was not an actual property, just something calculated in each client row, as a product of status, isEligible, and isDraining. This PR adds isDraining as a component of compositeState so it can be used for sorting.

2. The Sortable mixin declares dependent keys that cause the sort to be live-updating, but only if the members of the array change, such as if a new client is added, but not if any of the sortable properties change. This PR adds a SortableFactory function that generates a mixin whose listSorted computed property includes dependent keys for the sortable properties, so the table will live-update if any of the sortable properties change, not just the array members. There’s a warning if you use SortableFactory without dependent keys and via the original Sortable interface, so we can eventually migrate away from it.
2019-12-12 13:06:54 -06:00
..
allocations UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
clients UI: Fix client sorting (#6817) 2019-12-12 13:06:54 -06:00
components UI: Fix client sorting (#6817) 2019-12-12 13:06:54 -06:00
jobs Remove inverse block for list-pagination (#6523) 2019-10-24 07:05:43 -05:00
partials Refactor navbar markup 2018-08-06 11:21:53 -07:00
servers UI: Add page titles (#5924) 2019-07-17 15:02:58 -05:00
settings UI: Add page titles (#5924) 2019-07-17 15:02:58 -05:00
allocations.hbs
application.hbs UI: Add page titles (#5924) 2019-07-17 15:02:58 -05:00
clients.hbs
freestyle.hbs UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
head.hbs UI: Add page titles (#5924) 2019-07-17 15:02:58 -05:00
index.hbs
jobs.hbs Use page-layout for job routes 2018-07-30 13:13:52 -07:00
loading.hbs Use page-layout for job routes 2018-07-30 13:13:52 -07:00
servers.hbs
settings.hbs
svg-patterns.hbs