discourse/plugins/poll/test/javascripts/component
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
..
poll-buttons-dropdown-test.js FIX: Poll: Show gear button only when there is more than one dropdown item (#27775) 2024-07-11 11:19:04 +08:00
poll-info-test.js FIX: Poll: critical display issue when results are only shown upon vote (#27732) 2024-07-05 10:55:14 +02:00
poll-options-test.js FIX: Allow safe html in poll options (#27741) 2024-07-07 15:08:00 +02:00
poll-results-pie-test.js DEV: Check for poll element presence (#27765) 2024-07-08 13:58:35 +02:00
poll-results-standard-test.js DEV: Check for poll element presence (#27765) 2024-07-08 13:58:35 +02:00
poll-test.js FEATURE: Add Instant Run-off Voting to Poll Plugin (Part 1: migrate existing plugin to Glimmer only) (#27204) 2024-07-04 13:34:48 +02:00
poll-ui-builder-test.js FEATURE: Configure poll 'public' default via site setting (#24348) 2023-11-13 18:54:21 +00:00