ccdb-web/app/controllers/collections/create.js
2017-10-01 16:49:43 -07:00

16 lines
334 B
JavaScript

import Ember from 'ember';
const { Controller } = Ember;
export default Controller.extend({
actions: {
onSave(changeset) {
changeset.save();
this.transitionToRoute('collections.index');
},
onCancel(changeset) {
changeset.rollback();
this.transitionToRoute('collections.index');
},
},
});