14 lines
271 B
JavaScript
14 lines
271 B
JavaScript
import Ember from 'ember';
|
|
|
|
const { Controller } = Ember;
|
|
|
|
export default Controller.extend({
|
|
actions: {
|
|
delete: function() {
|
|
this.get('model').destroyRecord().then(() => {
|
|
this.transitionToRoute('protected.species.index');
|
|
});
|
|
},
|
|
},
|
|
|
|
});
|