Refactor species/show
This commit is contained in:
parent
2b2489a35a
commit
d1e3d05db2
8 changed files with 106 additions and 69 deletions
14
app/pods/protected/species/show/species-card/component.js
Normal file
14
app/pods/protected/species/show/species-card/component.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
const { Component } = Ember;
|
||||
|
||||
export default Component.extend({
|
||||
species: null,
|
||||
"on-delete": null,
|
||||
|
||||
actions: {
|
||||
deleteSpecies: function() {
|
||||
return this.attrs['on-delete']();
|
||||
},
|
||||
},
|
||||
});
|
Reference in a new issue