El botón de engranaje debería aparecer para aquellos con privilegios suficientes y está destinado a mostrar a un administrador de encuestas una lista de acciones posibles, por ejemplo, para cerrar la encuesta.
No debería mostrarse para aquellos que no tienen acciones posibles.
Prácticamente todo el plugin de encuestas se migró a Glimmer la semana pasada.
Esto parece una regresión menor.
He abierto una PR y buscaré completarla mañana. (funciona pero faltan pruebas unitarias)
main ← merefield:poll_cog_button_fix
opened 09:36PM - 08 Jul 24 UTC
relates to #27204
see: https://meta.discourse.org/t/what-is-the-gear-button-… under-the-poll-for/315477/2
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)
8 Me gusta