mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
5ecc74e87a
Closes #2849 -wire up delete post action in ember admin -refactor ember modal dialog -override RESTAdapter.deleteRecord to workaround Ember expecting an empty response body on DELETEs
29 lines
585 B
JavaScript
29 lines
585 B
JavaScript
/*global alert */
|
|
|
|
var DeleteAllController = Ember.Controller.extend({
|
|
actions: {
|
|
confirmAccept: function () {
|
|
alert('Deleting everything!');
|
|
|
|
this.notifications.showSuccess('Everything has been deleted.');
|
|
},
|
|
|
|
confirmReject: function () {
|
|
return true;
|
|
}
|
|
},
|
|
|
|
confirm: {
|
|
accept: {
|
|
text: 'Delete',
|
|
buttonClass: 'button-delete'
|
|
},
|
|
reject: {
|
|
text: 'Cancel',
|
|
buttonClass: 'button'
|
|
}
|
|
}
|
|
});
|
|
|
|
export default DeleteAllController;
|