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

fix(files): Fix navigating with breadcrumbs not highlighting navigation entry
pull/47724/head
Pytal 1 year ago committed by GitHub
commit 0aebd3761e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      apps/files/src/components/BreadCrumbs.vue
  2. 4
      dist/files-main.js
  3. 2
      dist/files-main.js.map

@ -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 },
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save