A platform for community discussion. Free, open, simple.
DEV: Allows widgets to extend post-controls (#11897)
Ahmed Gaganf6e6ae5e249a
diff --git a/app/assets/javascripts/discourse/app/widgets/post-menu.js b/app/assets/javascripts/discourse/app/widgets/post-menu.jsindex 2c72a2ca17b..99d342f6c6a 100644--- a/app/assets/javascripts/discourse/app/widgets/post-menu.js+++ b/app/assets/javascripts/discourse/app/widgets/post-menu.js@@ -568,6 +568,15 @@ export default createWidget("post-menu", {}}+ const extraPostControls = applyDecorators(+ this,+ "extra-post-controls",+ attrs,+ state+ );++ postControls.push(extraPostControls);+const extraControls = applyDecorators(this, "extra-controls", attrs, state);const beforeExtraControls = applyDecorators(this,