From cf4e6e2f5be95022ddc5d09d67187e646a54034f Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 4 Oct 2017 16:12:00 -0400 Subject: [PATCH] FIX: `deletePost` action was incorrect called `delete` --- app/assets/javascripts/discourse/widgets/post-menu.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/widgets/post-menu.js.es6 b/app/assets/javascripts/discourse/widgets/post-menu.js.es6 index f6a0665ca48..7dda8da45b3 100644 --- a/app/assets/javascripts/discourse/widgets/post-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-menu.js.es6 @@ -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' }; } });