This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/components/delete-button/component.js
2015-11-16 10:32:49 -07:00

23 lines
394 B
JavaScript

import Ember from 'ember';
const { Component } = Ember;
export default Component.extend({
tagName: 'span',
showConfirmDelete: false,
actions: {
initialClick: function() {
this.set('showConfirmDelete', true);
},
cancelDelete: function() {
this.set('showConfirmDelete', false);
},
confirmDelete: function() {
this.attrs.delete();
},
},
});