open-nomad/ui/app
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
..
adapters UI: Update Ember to 3.12 LTS (#6419) 2019-10-15 13:32:58 -05:00
components UI: Fix client sorting (#6817) 2019-12-12 13:06:54 -06:00
controllers UI: Fix client sorting (#6817) 2019-12-12 13:06:54 -06:00
helpers Address inflector deprecations 2019-04-10 14:54:35 -07:00
initializers Expose the token service in all templates for convenience 2017-09-29 17:41:29 -07:00
mixins UI: Fix client sorting (#6817) 2019-12-12 13:06:54 -06:00
models UI: Fix client sorting (#6817) 2019-12-12 13:06:54 -06:00
routes UI: Update Ember to 3.12 LTS (#6419) 2019-10-15 13:32:58 -05:00
serializers UI: Update Ember to 3.12 LTS (#6419) 2019-10-15 13:32:58 -05:00
services UI: Update Ember to 3.12 LTS (#6419) 2019-10-15 13:32:58 -05:00
styles UI: Fix client sorting (#6817) 2019-12-12 13:06:54 -06:00
templates UI: Fix client sorting (#6817) 2019-12-12 13:06:54 -06:00
utils Don't initialize variables before you need them 2019-12-05 10:51:51 -08:00
app.js Remove the MODEL_FACTORY_INJECTIONS cruft 2018-01-17 09:02:05 -08:00
breakpoints.js Change breakpoints to match Nomad/Bulma widths 2019-04-10 10:34:10 -05:00
index.html sync 2017-09-19 10:08:23 -05:00
resolver.js sync 2017-09-19 10:08:23 -05:00
router.js Merge branch 'master' into f-ui/alloc-fs 2019-07-26 14:49:36 -05:00