Delete characteristic
This commit is contained in:
parent
5be2888223
commit
a1e4e03b89
4 changed files with 27 additions and 0 deletions
11
app/pods/protected/characteristics/show/controller.js
Normal file
11
app/pods/protected/characteristics/show/controller.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Controller.extend({
|
||||
actions: {
|
||||
delete: function() {
|
||||
this.get('model').destroyRecord()
|
||||
this.transitionToRoute('protected.characteristics.index');
|
||||
},
|
||||
},
|
||||
|
||||
});
|
Reference in a new issue