From a531d6d46672cc2754a8770d1c6118c1c76f85e6 Mon Sep 17 00:00:00 2001 From: bruno Date: Fri, 10 Jul 2026 20:38:11 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20sidebar=20updates=20after=20file/folder?= =?UTF-8?q?=20creation=20=E2=80=94=20force=20page=20reload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- app/templates/local_workspace.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index 1f2fb84..14c8a2b 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -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');