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