16 lines
334 B
JavaScript
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');
|
|
},
|
|
},
|
|
});
|