discourse/plugins
Robert d8d3d2184a
FIX: Poll: Show gear button only when there is more than one dropdown item (#27775)
During migration of Poll plugin from widget basis to glimmer, some functionality was inadvertently dropped:

- A single button should appear instead of the dropdown menu when there is only one valid "poll admin" action
- No button should appear when there are no valid "poll admin" actions for current user

This PR restores the original behaviour and adds test coverage (that didn't exist prior to migration, partly why it wasn't caught earlier)

relates to #27204

related meta topic:  https://meta.discourse.org/t/what-is-the-gear-button-under-the-poll-for/315477/2
2024-07-11 11:19:04 +08:00
..
automation Update translations (#27790) 2024-07-09 23:12:03 +02:00
chat A11Y: usercard resizing for high zoom levels (#27846) 2024-07-10 14:51:56 -04:00
checklist FEATURE: Add Uyghur language (#27183) 2024-05-27 09:58:18 +02:00
discourse-details FIX: allow quote-less details BBCode 2024-06-24 14:16:36 +02:00
discourse-lazy-videos Update translations (#27680) 2024-07-02 16:42:56 +02:00
discourse-local-dates FIX: BBCode tag parser 2024-06-18 10:47:18 +02:00
discourse-narrative-bot Update translations 2024-06-28 16:10:06 +02:00
discourse-presence FEATURE: Add Uyghur language (#27183) 2024-05-27 09:58:18 +02:00
footnote FIX: Inline footnotes doesn’t work in the table at fullscreen (#27686) 2024-07-03 18:52:36 +08:00
poll FIX: Poll: Show gear button only when there is more than one dropdown item (#27775) 2024-07-11 11:19:04 +08:00
spoiler-alert FIX: quoting a spoiler 2024-05-28 19:24:52 +02:00
styleguide FEATURE: Add Uyghur language (#27183) 2024-05-27 09:58:18 +02:00