Delete characteristic

This commit is contained in:
Matthew Dillon 2015-10-12 10:20:17 -07:00
parent 5be2888223
commit a1e4e03b89
4 changed files with 27 additions and 0 deletions

View 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();
}
},
});

View file

@ -0,0 +1 @@
Delete