Clean up delete transitions

This commit is contained in:
Matthew Ryan Dillon 2015-10-20 16:12:35 -07:00
parent f06fbd0305
commit 227a85bb01
6 changed files with 18 additions and 12 deletions

View file

@ -3,8 +3,9 @@ import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
delete: function() {
this.get('model').destroyRecord();
this.transitionToRoute('protected.species.index');
this.get('model').destroyRecord().then(() => {
this.transitionToRoute('protected.species.index');
});
},
},