mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00: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); }, }); ```