Skip to content

Commit

Permalink
Merge pull request #47158 from nextcloud/fix/breadcrumbs-highlight
Browse files Browse the repository at this point in the history
fix(files): Fix navigating with breadcrumbs not highlighting navigation entry
  • Loading branch information
Pytal authored Sep 3, 2024
2 parents a538ff6 + 66de5e8 commit 0aebd37
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion apps/files/src/components/BreadCrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default defineComponent({
const pathsStore = usePathsStore()
const selectionStore = useSelectionStore()
const uploaderStore = useUploaderStore()
const { currentView } = useNavigation()
const { currentView, views } = useNavigation()
return {
draggingStore,
Expand All @@ -93,6 +93,7 @@ export default defineComponent({
uploaderStore,
currentView,
views,
}
},
Expand Down Expand Up @@ -171,8 +172,10 @@ export default defineComponent({
}
}
if (node === undefined) {
const view = this.views.find(view => view.params?.dir === dir)
return {
...this.$route,
params: { fileid: view?.params?.fileid ?? '' },
query: { dir },
}
}
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.

0 comments on commit 0aebd37

Please sign in to comment.