parent
6ab7e66d03
commit
6dbdd70d31
8 changed files with 27 additions and 17 deletions
|
@ -13,7 +13,7 @@ export default Ember.Controller.extend({
|
|||
ajaxError(characteristic.get('errors'), this.get('flashMessages'));
|
||||
});
|
||||
} else {
|
||||
characteristic.deleteRecord().then(() => {
|
||||
characteristic.destroyRecord().then(() => {
|
||||
this.transitionToRoute('protected.characteristics.show', characteristic);
|
||||
});
|
||||
}
|
||||
|
|
Reference in a new issue