Skip to content

Commit 1df14bf

Browse files
authored
Update DiffFileTreeItem.vue
1 parent facb60b commit 1df14bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web_src/js/components/DiffFileTreeItem.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ const store = diffTreeStore();
1313
const isViewed = computed(() => {
1414
return fileIsViewed(props.item);
1515
});
16+
/**
17+
* Behavior:
18+
* - Viewed folders collapse on initial load (based on `isViewed` state)
19+
* - Manual expand/collapse via clicks remains enabled
20+
*/
1621
const collapsed = ref(isViewed.value);
1722
1823
function getIconForDiffStatus(pType: FileStatus) {

0 commit comments

Comments
 (0)