FIX: `deletePost` action was incorrect called `delete`

This commit is contained in:
Robin Ward 2017-10-04 16:12:00 -04:00
parent e212435545
commit cf4e6e2f5b
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ registerButton('delete', attrs => {
} else if (attrs.canRecover) {
return { id: 'recover', action: 'recoverPost', title: 'post.controls.undelete', icon: 'undo', className: 'recover' };
} else if (attrs.canDelete) {
return { action: 'delete', title: 'post.controls.delete', icon: 'trash-o', className: 'delete' };
return { id: 'delete', action: 'deletePost', title: 'post.controls.delete', icon: 'trash-o', className: 'delete' };
}
});