mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 13:53:44 +08:00
8dd883d4e5
* DEV: Refactor topic admin menu to use `<DMenu>` This PR also introduces a new plugin API to add buttons to the topic admin menu ```javascript api.addTopicAdminMenuButton((topic) => { return { action: () => { alert('Sunrise!'); }, icon: 'sun', className: 'sunrise-button', label: 'actions.rise', }; }); ``` The plugins that needed to be updated are: - [discourse-zoom](https://github.com/discourse/discourse-zoom/pull/73) - [discourse-salesforce](https://github.com/discourse/discourse-salesforce/pull/74) - [discourse-topic-noindex](https://github.com/discourse/discourse-topic-noindex/pull/11) |
||
---|---|---|
.. | ||
ADMIN-QUICK-START-GUIDE.md | ||
AUTHORS.md | ||
CHANGELOG-JAVASCRIPT-PLUGIN-API.md | ||
code-of-conduct.md | ||
DEVELOPER-ADVANCED.md | ||
DEVELOPMENT-OSX-NATIVE.md | ||
INSTALL-cloud.md | ||
INSTALL-email.md | ||
INSTALL.md | ||
PLUGINS.md | ||
SECURITY.md | ||
TESTING.md | ||
TROUBLESHOOTING.md |