Il pulsante dell’ingranaggio dovrebbe apparire per coloro che hanno privilegi sufficienti ed è inteso a mostrare a un amministratore del sondaggio un elenco di possibili azioni, ad esempio per chiudere il sondaggio.
Non dovrebbe apparire per coloro che non hanno azioni possibili.
Praticamente l’intero plugin del sondaggio è stato migrato a Glimmer la scorsa settimana.
Questo sembra una regressione minore.
Ho aperto una PR e cercherò di completarla domani. (funziona ma mancano unit test)
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 Mi Piace