DEV: Allows widgets to extend post-controls (#11897)

This commit is contained in:
Ahmed Gagan 2021-02-05 13:57:47 +05:30 committed by GitHub
parent 792c2b94f6
commit f6e6ae5e24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,