discourse/plugins/chat/assets/javascripts
Sérgio Saquetim e306a521fd
DEV: Added chat api to remove secondary actions (#21982)
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>
2023-06-08 11:37:50 -03:00
..
discourse DEV: Added chat api to remove secondary actions (#21982) 2023-06-08 11:37:50 -03:00
lib/discourse-markdown UX/DEV: Review queue redesign fixes (#20239) 2023-03-02 16:40:53 +01:00