mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:33: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> |
||
---|---|---|
.. | ||
plugin-api-test.js |