discourse/plugins/poll/test/javascripts
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
..
acceptance DEV: Check for poll element presence (#27765) 2024-07-08 13:58:35 +02:00
component FIX: Poll: Show gear button only when there is more than one dropdown item (#27775) 2024-07-11 11:19:04 +08:00
helpers DEV: Sort imports 2023-10-10 21:46:54 +01:00