23 lines
394 B
JavaScript
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();
|
|
},
|
|
},
|
|
|
|
});
|