mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Introduces new plugin api for adding bulk topic actions:
Example:
```js
api.addBulkActionButton({
label: "super_plugin.bulk.enhance",
icon: "magic",
class: "btn-default",
visible: ({ currentUser, siteSettings }) => siteSettings.super_plugin_enabled && currentUser.staff,
async action({ setComponent }) {
await doSomething(this.model.topics);
setComponent(MyBulkModal);
},
});
```