parent
eb4537afb1
commit
6f01fbf00f
5 changed files with 42 additions and 0 deletions
|
@ -5,5 +5,10 @@ export default Controller.extend({
|
|||
editCollection() {
|
||||
this.transitionToRoute('collections.detail.edit', this.get('model'));
|
||||
},
|
||||
deleteCollection() {
|
||||
this.get('model')[0].destroyRecord().then(() => {
|
||||
this.transitionToRoute('collections');
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue