2019-12-17 18:47:37 +00:00
|
|
|
import Route from './edit';
|
|
|
|
import CreatingRoute from 'consul-ui/mixins/creating-route';
|
|
|
|
|
2020-11-09 09:25:35 +00:00
|
|
|
export default class CreateRoute extends Route.extend(CreatingRoute) {
|
|
|
|
templateName = 'dc/nspaces/edit';
|
|
|
|
|
2021-03-11 09:29:11 +00:00
|
|
|
async beforeModel() {
|
|
|
|
// TODO: Update nspace CRUD to use Data components
|
2019-12-17 18:47:37 +00:00
|
|
|
// we need to skip CreatingRoute.beforeModel here
|
2021-03-11 09:29:11 +00:00
|
|
|
// but still call Route.beforeModel
|
|
|
|
return Route.prototype.beforeModel.apply(this, arguments);
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
}
|