2014-03-31 08:07:05 +04:00
|
|
|
/*global alert */
|
|
|
|
|
|
|
|
var DeleteAllController = Ember.Controller.extend({
|
2014-06-04 01:10:54 +04:00
|
|
|
actions: {
|
|
|
|
confirmAccept: function () {
|
|
|
|
alert('Deleting everything!');
|
2014-03-31 08:07:05 +04:00
|
|
|
|
2014-06-04 01:10:54 +04:00
|
|
|
this.notifications.showSuccess('Everything has been deleted.');
|
|
|
|
},
|
2014-03-31 08:07:05 +04:00
|
|
|
|
2014-06-04 01:10:54 +04:00
|
|
|
confirmReject: function () {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
},
|
2014-03-31 08:07:05 +04:00
|
|
|
|
2014-06-04 01:10:54 +04:00
|
|
|
confirm: {
|
|
|
|
accept: {
|
2014-06-02 00:53:16 +04:00
|
|
|
text: 'Delete',
|
|
|
|
buttonClass: 'button-delete'
|
2014-03-31 08:07:05 +04:00
|
|
|
},
|
|
|
|
reject: {
|
2014-06-02 00:53:16 +04:00
|
|
|
text: 'Cancel',
|
|
|
|
buttonClass: 'button'
|
2014-03-31 08:07:05 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default DeleteAllController;
|