Merge pull request #47158 from nextcloud/fix/breadcrumbs-highlight

fix(files): Fix navigating with breadcrumbs not highlighting navigation entry
This commit is contained in:
Pytal 2024-09-03 11:36:17 -07:00 committed by GitHub
commit 0aebd3761e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View file

@ -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,
@ -93,6 +93,7 @@ export default defineComponent({
uploaderStore,
currentView,
views,
}
},
@ -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 },
}
}

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long