Delete characteristic
This commit is contained in:
parent
5be2888223
commit
a1e4e03b89
4 changed files with 27 additions and 0 deletions
13
app/pods/components/delete-button/component.js
Normal file
13
app/pods/components/delete-button/component.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
tagName: 'button',
|
||||
classNames: ["button-red", "smaller"],
|
||||
|
||||
click: function() {
|
||||
if (window.confirm("Do you really want to delete this?")) {
|
||||
this.attrs.delete();
|
||||
}
|
||||
},
|
||||
|
||||
});
|
1
app/pods/components/delete-button/template.hbs
Normal file
1
app/pods/components/delete-button/template.hbs
Normal file
|
@ -0,0 +1 @@
|
|||
Delete
|
Reference in a new issue