forked from forgejo/forgejo
parent
726afe8a9e
commit
04e97b8311
18 changed files with 384 additions and 606 deletions
|
@ -1,11 +1,10 @@
|
|||
<template>
|
||||
<div
|
||||
v-show="fileTreeIsVisible"
|
||||
id="diff-file-tree"
|
||||
v-if="fileTreeIsVisible"
|
||||
class="mr-3 mt-3 diff-detail-box"
|
||||
>
|
||||
<!-- only render the tree if we're visible. in many cases this is something that doesn't change very often -->
|
||||
<div class="ui list" v-if="fileTreeIsVisible">
|
||||
<div class="ui list">
|
||||
<DiffFileTreeItem v-for="item in fileTree" :key="item.name" :item="item" />
|
||||
</div>
|
||||
<div v-if="isIncomplete" id="diff-too-many-files-stats" class="pt-2">
|
||||
|
@ -117,6 +116,9 @@ export default {
|
|||
const [toShow, toHide] = document.querySelectorAll('.diff-toggle-file-tree-button .icon');
|
||||
toShow.classList.toggle('hide', visible); // hide the toShow icon if the tree is visible
|
||||
toHide.classList.toggle('hide', !visible); // similarly
|
||||
|
||||
const diffTree = document.getElementById('diff-file-tree');
|
||||
diffTree.classList.toggle('hide', !visible);
|
||||
},
|
||||
loadMoreData() {
|
||||
this.isLoadingNewData = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue