Skip to content

Commit

Permalink
fix(files): Fix navigating with breadcrumbs not highlighting navigati…
Browse files Browse the repository at this point in the history
…on entry

Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Aug 27, 2024
1 parent a740e60 commit fe8f31a
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit fe8f31a

Please sign in to comment.