Fix Icon to Chevron down if Expand all folders is clicked

This commit is contained in:
johnnyq 2026-01-27 16:32:17 -05:00
parent d42d2d99b1
commit 704d770ec2
1 changed files with 3 additions and 1 deletions

View File

@ -164,7 +164,9 @@ function display_folders($parent_folder_id, $client_id, $indent = 0, $render_roo
echo ' ' . $folder_name;
if ($subfolder_count > 0) {
echo '<i class="fas fa-chevron-' . ($on_active_path ? 'down' : 'right') . ' text-muted ml-2"></i>';
$is_expanded = $folders_expanded || $on_active_path;
echo '<i class="fas fa-chevron-' . ($is_expanded ? 'down' : 'right') . ' text-muted ml-2"></i>';
}
if ($num_total > 0) {