open-nomad/ui/app/controllers/optimize/summary.js
2021-12-23 12:41:52 -05:00

25 lines
495 B
JavaScript

import Controller from '@ember/controller';
import { inject as controller } from '@ember/controller';
export default class OptimizeSummaryController extends Controller {
@controller('optimize') optimizeController;
queryParams = [
{
jobNamespace: 'namespace',
},
];
get summary() {
return this.model;
}
get breadcrumb() {
const { slug } = this.summary;
return {
label: slug.replace('/', ' / '),
args: ['optimize.summary', slug],
};
}
}