13 lines
370 B
JavaScript
13 lines
370 B
JavaScript
|
import Route from '@ember/routing/route';
|
||
|
|
||
|
export default class JobsJobServicesServiceRoute extends Route {
|
||
|
model({ name = '', level = '' }) {
|
||
|
const services = this.modelFor('jobs.job')
|
||
|
.get('services')
|
||
|
.filter(
|
||
|
(service) => service.name === name && service.derivedLevel === level
|
||
|
);
|
||
|
return { name, instances: services || [] };
|
||
|
}
|
||
|
}
|