mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
When using api.decorateWidget("topic-admin-menu:adminMenuButtons") in plugins, an empty button is added if the helper only returns attributes based on a condition (for example, if the admin action is limited to public topics.) In that case, we need to exclude the button from rendering.