This repository has been archived on 2025-03-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
hymenobacterdotinfo/app/pods/components/delete-button/component.js
2015-10-12 10:20:17 -07:00

13 lines
260 B
JavaScript

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