mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
2a96064e6b
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); }, }); ```