mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
DEV: Allows widgets to extend post-controls (#11897)
This commit is contained in:
parent
792c2b94f6
commit
f6e6ae5e24
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user