mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-01 00:13:37 +00:00
The only ways to re-fetch mail are the browser refresh gestures (F5, Ctrl/Cmd+R, pull-to-refresh) that useRefreshGesture intercepts. On a desktop that is discoverable enough, but there is no visible control, and users who reach for one find nothing. Extract the gesture's inline onRefresh into a shared handleManualRefresh with a spinner state, then reuse it for a refresh button next to the filter control in the mail-list toolbar. The icon spins while the fetch is in flight and the button is disabled until it settles, so repeated clicks can't stack requests. Uses the existing common.refresh translation key, so no new strings. Also guard the login submit with rememberMeEnabled: the checkbox is only rendered when the server has a SESSION_SECRET, but the value was passed through unconditionally, asking for a credential cookie the server will not write.