mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
fix(#290): fix tree rendering of files inside a single folder
This commit is contained in:
@@ -361,8 +361,16 @@ angular
|
||||
} else {
|
||||
output += `<a href='/r/${$scope.repoId}${path}'>${name}</a>`;
|
||||
}
|
||||
if ($scope.opens[path] && f.child && f.child.length > 1) {
|
||||
output += generate(f.child, parentPath + "/" + f.name);
|
||||
if ($scope.opens[path] && f.child) {
|
||||
if (f.child.length > 1) {
|
||||
output += generate(f.child, path);
|
||||
} else if (dir) {
|
||||
current = f.child;
|
||||
while (current && current.length == 1) {
|
||||
current = current[0].child;
|
||||
}
|
||||
output += generate(current, path);
|
||||
}
|
||||
}
|
||||
// output += generate(f.child, parentPath + "/" + f.name);
|
||||
output + "</li>";
|
||||
|
||||
2
public/script/bundle.min.js
vendored
2
public/script/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user