discourse/plugins/chat/test/javascripts/unit
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
..
helpers DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
lib DEV: Remove defunct TODOs (#19825) 2023-01-12 09:41:39 +10:00
services FIX: improves draft for channels (#21724) 2023-05-24 15:36:46 +02:00
utility DEV: Added chat api to remove secondary actions (#21982) 2023-06-08 11:37:50 -03:00