mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 14:23:39 +08:00
e306a521fd
In some cases, plugins may want to hide some of these actions at all times, overriding the rules for canX with hiding these buttons. To achieve this, a plugin can call the API `removeChatComposerSecondaryButtons` and pass the list of button IDs that should be removed as argument, like the example below: ``` withPluginApi("1.2.0", (api) => { api.removeChatComposerSecondaryActions("copyLink", "select"); }); ``` --------- Co-authored-by: Martin Brennan <martin@discourse.org> |
||
---|---|---|
.. | ||
acceptance | ||
components | ||
helpers | ||
integration/components/user-menu | ||
unit | ||
widgets | ||
chat-fixtures.js |