fix: undo closing a widget (#40)
CI / build-and-test (pull_request) Successful in 2m19s

Closing a widget was instant and destructive - one misclick on the X
lost its size and position. Close now shows a toast with an undo
button that re-adds the very same widget at its captured gs-x/y/w/h,
keeping its gs-id. Programmatic close() (fromClient=false) is skipped.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HGRChzremwYCUctf2qMrQz
This commit is contained in:
Pit Friedrich
2026-07-28 23:25:13 +02:00
parent cd1d8f494d
commit 4878a7fc06
7 changed files with 219 additions and 8 deletions
@@ -37,6 +37,8 @@ gridstack.restore=Restaurar
gridstack.duplicate=Duplicar
gridstack.remove=Eliminar
gridstack.export=Exportar como CSV
gridstack.closed=Widget eliminado
gridstack.undo=Deshacer
# Encabezado de columna de las exportaciones CSV; la columna de valores lleva
# el nombre de la serie.