2017-12-15 21:39:18 +00:00
|
|
|
import Route from '@ember/routing/route';
|
2017-09-28 17:59:59 +00:00
|
|
|
import WithModelErrorHandling from 'nomad-ui/mixins/with-model-error-handling';
|
2017-09-28 17:47:02 +00:00
|
|
|
|
2020-06-16 02:56:49 +00:00
|
|
|
export default class ServerRoute extends Route.extend(WithModelErrorHandling) {
|
|
|
|
breadcrumbs(model) {
|
|
|
|
if (!model) return [];
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
label: model.name,
|
|
|
|
args: ['servers.server', model.id],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|