diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index 23c0dd1..ecd6423 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -356,7 +356,7 @@ document.addEventListener('alpine:init', function() { var icon = c.is_folder ? '📁' : '📄'; html += '
  • '; if (c.is_folder && hasKids) { - html += ''; + html += ''; } else { html += ''; } @@ -389,9 +389,20 @@ document.addEventListener('alpine:init', function() { return s.replace(/\\/g,'\\\\').replace(/'/g,"\\'").replace(/"/g,'"'); }, - toggleExpand(id) { + toggleExpand(id, btn) { this.expanded[id] = !(this.expanded[id] || false); this.expanded = Object.assign({}, this.expanded); + // For renderChildren static HTML: toggle the sibling