Skip to content

Commit

Permalink
add missing scrollToResourceFromRoute param
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Sep 26, 2023
1 parent edac8fb commit 44c1c71
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/web-app-files/src/components/Search/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export default defineComponent({
: []
})
await nextTick()
this.scrollToResourceFromRoute(this.paginatedResources)
this.scrollToResourceFromRoute(this.paginatedResources, 'files-app-bar')
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app-files/src/views/Favorites.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default defineComponent({
async created() {
await this.loadResourcesTask.perform()
this.scrollToResourceFromRoute(this.paginatedResources)
this.scrollToResourceFromRoute(this.paginatedResources, 'files-app-bar')
},
methods: {
Expand Down
9 changes: 4 additions & 5 deletions packages/web-app-files/src/views/shares/SharedWithMe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,10 @@ export default defineComponent({
async created() {
await this.loadResourcesTask.perform()
this.scrollToResourceFromRoute([
...this.acceptedItems,
...this.pendingItems,
...this.declinedItems
])
this.scrollToResourceFromRoute(
[...this.acceptedItems, ...this.pendingItems, ...this.declinedItems],
'files-app-bar'
)
}
})
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default defineComponent({
async created() {
await this.loadResourcesTask.perform()
this.scrollToResourceFromRoute(this.paginatedResources)
this.scrollToResourceFromRoute(this.paginatedResources, 'files-app-bar')
},
beforeUnmount() {
Expand Down
8 changes: 4 additions & 4 deletions packages/web-app-files/src/views/spaces/GenericSpace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,10 @@ export default defineComponent({
options
)
resourcesViewDefaults.scrollToResourceFromRoute([
store.getters['Files/currentFolder'],
...unref(resourcesViewDefaults.paginatedResources)
])
resourcesViewDefaults.scrollToResourceFromRoute(
[store.getters['Files/currentFolder'], ...unref(resourcesViewDefaults.paginatedResources)],
'files-app-bar'
)
resourcesViewDefaults.refreshFileListHeaderPosition()
focusAndAnnounceBreadcrumb(sameRoute)
Expand Down
3 changes: 2 additions & 1 deletion packages/web-app-files/src/views/spaces/GenericTrash.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ export default defineComponent({
await resourcesViewDefaults.loadResourcesTask.perform(props.space)
resourcesViewDefaults.refreshFileListHeaderPosition()
resourcesViewDefaults.scrollToResourceFromRoute(
unref(resourcesViewDefaults.paginatedResources)
unref(resourcesViewDefaults.paginatedResources),
'files-app-bar'
)
}
Expand Down

0 comments on commit 44c1c71

Please sign in to comment.