mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00: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 extraControls = applyDecorators(this, "extra-controls", attrs, state);
|
||||||
const beforeExtraControls = applyDecorators(
|
const beforeExtraControls = applyDecorators(
|
||||||
this,
|
this,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user