Skip to content
Closed
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
4 changes: 3 additions & 1 deletion apps/files/src/views/FilesList.vue
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be handled by the files store not the files list.
The files list should only fetch content when the current folder is changed.

Original file line number Diff line number Diff line change
Expand Up @@ -676,11 +676,13 @@ export default defineComponent({

/**
* Refreshes the current folder on update.
* Also refresh on update of the file inside the current folder
*
* @param node is the file/folder being updated.
*/
onUpdatedNode(node?: Node) {
if (node?.fileid === this.currentFolder?.fileid) {
if (node?.fileid === this.currentFolder?.fileid
|| (node?.path && dirname(node.path) === this.directory)) {
this.fetchContent()
}
},
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Loading