mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
19 lines
542 B
JavaScript
19 lines
542 B
JavaScript
import Controller from '@ember/controller';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default Controller.extend({
|
|
sortedControllers: computed('model.controllers.@each.updateTime', function() {
|
|
return this.model.controllers.sortBy('updateTime').reverse();
|
|
}),
|
|
|
|
sortedNodes: computed('model.nodes.@each.updateTime', function() {
|
|
return this.model.nodes.sortBy('updateTime').reverse();
|
|
}),
|
|
|
|
actions: {
|
|
gotoAllocation(allocation) {
|
|
this.transitionToRoute('allocations.allocation', allocation);
|
|
},
|
|
},
|
|
});
|