dc5d403c28
1. Includes Datacenter variable for intperolation 2. Amends text on the Settings page to reflect new keyword 3. Adds further acceptance testing around the new dashboard buttons
29 lines
721 B
JavaScript
29 lines
721 B
JavaScript
import Route from '@ember/routing/route';
|
|
import { inject as service } from '@ember/service';
|
|
import { hash } from 'rsvp';
|
|
import { get } from '@ember/object';
|
|
|
|
export default Route.extend({
|
|
repo: service('repository/service'),
|
|
settings: service('settings'),
|
|
queryParams: {
|
|
s: {
|
|
as: 'filter',
|
|
replace: true,
|
|
},
|
|
},
|
|
model: function(params) {
|
|
const repo = get(this, 'repo');
|
|
const settings = get(this, 'settings');
|
|
const dc = this.modelFor('dc').dc.Name;
|
|
return hash({
|
|
item: repo.findBySlug(params.name, dc),
|
|
urls: settings.findBySlug('urls'),
|
|
dc: dc,
|
|
});
|
|
},
|
|
setupController: function(controller, model) {
|
|
controller.setProperties(model);
|
|
},
|
|
});
|