aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/components/DiffFileTree.vue
diff options
context:
space:
mode:
authorbytedream <me@bytedream.dev>2025-06-19 20:28:19 +0200
committerGitHub <noreply@github.com>2025-06-20 02:28:19 +0800
commit7346ae7cd4a097ace0dee7757af65e43a48e8b77 (patch)
tree476803c1cf0ac46127dd6f7492520dff664d8bee /web_src/js/components/DiffFileTree.vue
parent0ea958dc58361be01514b3dcf1983e163af68836 (diff)
downloadgitea-7346ae7cd4a097ace0dee7757af65e43a48e8b77.tar.gz
gitea-7346ae7cd4a097ace0dee7757af65e43a48e8b77.zip
Add repo file tree item link behavior (#34730)
Converts the repo file tree items into `<a>` elements to have default link behavior. Dynamic content load is still done when no special key is pressed while clicking on an item. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js/components/DiffFileTree.vue')
-rw-r--r--web_src/js/components/DiffFileTree.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/components/DiffFileTree.vue b/web_src/js/components/DiffFileTree.vue
index 5426a672cb..981d10c1c1 100644
--- a/web_src/js/components/DiffFileTree.vue
+++ b/web_src/js/components/DiffFileTree.vue
@@ -60,8 +60,8 @@ function updateState(visible: boolean) {
</script>
<template>
+ <!-- only render the tree if we're visible. in many cases this is something that doesn't change very often -->
<div v-if="store.fileTreeIsVisible" class="diff-file-tree-items">
- <!-- only render the tree if we're visible. in many cases this is something that doesn't change very often -->
<DiffFileTreeItem v-for="item in store.diffFileTree.TreeRoot.Children" :key="item.FullName" :item="item"/>
</div>
</template>