fix: sidebar updates after file/folder creation — force page reload
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

Server-side rendered sidebar doesn't auto-update after AJAX creation.
Changed create modal to reload page after success so sidebar picks up
new pages from workspace_pages template variable.
This commit is contained in:
2026-07-10 20:38:11 -04:00
parent 2ca7834b43
commit a531d6d466
+1 -1
View File
@@ -188,7 +188,7 @@ function wsPage() {
});
if (r.ok) {
this.newName = ''; this.showCreateModal = false; this.parentFolder = null;
await this.load();
window.location.reload();
} else {
const e = await r.json();
alert(e.error || 'Failed to create');