fix: sidebar updates after file/folder creation — force page reload
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user