agent-zero/webui
Alessandro b13c77a8eb css polish and modal close fix
When you close a modal, the DOM element is physically removed from the document tree, which is what triggers x-destroy. Using Alpine's $dispatch('event'), the event fires from the detached element and cannot bubble up to the window where our x-on:plugin-modal-closed.window listener is waiting to refresh the list of plugins.

To fix this so it works 100% of the time, I've bypassed the bubbling entirely by explicitly dispatching the event directly on the window object using native JS inside the x-destroy directive.

Now, the moment the modal closes the listener catches it, and the list refreshes automatically, showing the "Advanced" button right away, so you can go back to the Advanced toggling modal to do edits without having to refresh.
2026-02-25 20:24:25 +01:00
..
components css polish and modal close fix 2026-02-25 20:24:25 +01:00
css css polish and modal close fix 2026-02-25 20:24:25 +01:00
js typed messages.js, unified returns from message handlers 2026-02-25 10:28:50 +01:00
public workdir outside project, gitkeeps 2026-02-08 14:54:49 +01:00
vendor WebSocket merge 2026-02-01 16:07:45 +01:00
index.css message rendering polishing 2026-02-04 08:47:06 +01:00
index.html Settings polishing, logout button 2026-02-05 22:02:49 +01:00
index.js add extension points coverage; add JS hooks 2026-02-18 12:32:04 +01:00
login.css Enhance: More polished single-user login page 2025-09-01 02:12:49 -07:00
login.html Enhance: More polished single-user login page 2025-09-01 02:12:49 -07:00