diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index 504474f..128e24e 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -300,7 +300,10 @@ document.addEventListener('alpine:init', function() { newName:'', parentFolder:null, target:null, - expanded: {}, + expanded: (function() { + try { return JSON.parse(localStorage.getItem('fd_ws_expanded') || '{}'); } + catch(e) { return {}; } + })(), currentFolder: {{ current_folder_id }}, searchQuery: '', @@ -429,6 +432,7 @@ document.addEventListener('alpine:init', function() { toggleExpand(id, btn) { this.expanded[id] = !(this.expanded[id] || false); this.expanded = Object.assign({}, this.expanded); + this._saveExpandedState(); // For renderChildren static HTML: toggle chevron + sibling