open-nomad/ui/app/routes/servers/server.js

15 lines
367 B
JavaScript
Raw Normal View History

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
export default class ServerRoute extends Route.extend(WithModelErrorHandling) {
breadcrumbs(model) {
if (!model) return [];
return [
{
label: model.name,
args: ['servers.server', model.id],
},
];
}
}