mirror of https://github.com/rancher/ui.git
14 lines
315 B
JavaScript
14 lines
315 B
JavaScript
import Route from '@ember/routing/route';
|
|
|
|
export default Route.extend({
|
|
model(/* params, transition*/) {
|
|
return this.get('store').createRecord({ type: 'certificate' });
|
|
},
|
|
|
|
resetController(controller, isExiting/* , transition*/) {
|
|
if (isExiting) {
|
|
controller.set('errors', null);
|
|
}
|
|
}
|
|
});
|