Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix recommendations showing in subdirectory
Fixes #38

Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Mar 20, 2019
commit 9c6252f4aa6a7fc923296d90afb788f9a393404c
2 changes: 1 addition & 1 deletion js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/main.js.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ OC.Plugins.register('OCA.Files.FileList', {
}
});

if (fileList.getCurrentDirectory() === '/') {
vm.show();
}
// Defer, so the filelist finishes loading before we read its current dir
setTimeout(() => {
if (fileList.getCurrentDirectory() === '/') {
vm.show();
}
}, 0);

}

});