2018-08-06 21:16:34 +00:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import { computed } from '@ember/object';
|
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
|
|
|
|
export default Component.extend({
|
|
|
|
system: service(),
|
|
|
|
router: service(),
|
|
|
|
store: service(),
|
|
|
|
|
|
|
|
sortedRegions: computed('system.regions', function() {
|
|
|
|
return this.get('system.regions')
|
|
|
|
.toArray()
|
|
|
|
.sort();
|
|
|
|
}),
|
|
|
|
|
|
|
|
gotoRegion(region) {
|
2019-03-26 07:46:44 +00:00
|
|
|
this.router.transitionTo('jobs', {
|
2018-08-10 01:12:26 +00:00
|
|
|
queryParams: { region },
|
2018-08-06 21:16:34 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|