fix: ctxMenuDelete triggers sidebar refresh via flowdeck:sidebar-refresh
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

deleteWithUndo() (called by ctxMenuDelete) was removing the node from the
local tree but never notifying the sidebar to refresh. Added dispatch of
'flowdeck:sidebar-refresh' event so the sidebar tree updates dynamically
without requiring a full page reload.
This commit is contained in:
2026-07-16 09:24:24 -04:00
parent ae2b1c5664
commit 4217978eaa
+2
View File
@@ -1224,6 +1224,8 @@ window._wsInitData = (function() {
self.undoVisible = false;
self.undoItemId = null;
}, 5000);
// Notify sidebar to refresh its tree
document.dispatchEvent(new CustomEvent('flowdeck:sidebar-refresh'));
},
undoDelete() {
if (this.undoTimeout) clearTimeout(this.undoTimeout);