Ghost/ghost/admin/controllers/modals/delete-all.js

29 lines
585 B
JavaScript
Raw Normal View History

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