From 44c1c71764695f2563ba6d04cbca4a337781e73a Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Tue, 26 Sep 2023 13:36:06 +0200 Subject: [PATCH] add missing scrollToResourceFromRoute param --- packages/web-app-files/src/components/Search/List.vue | 2 +- packages/web-app-files/src/views/Favorites.vue | 2 +- packages/web-app-files/src/views/shares/SharedWithMe.vue | 9 ++++----- .../web-app-files/src/views/shares/SharedWithOthers.vue | 2 +- packages/web-app-files/src/views/spaces/GenericSpace.vue | 8 ++++---- packages/web-app-files/src/views/spaces/GenericTrash.vue | 3 ++- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/web-app-files/src/components/Search/List.vue b/packages/web-app-files/src/components/Search/List.vue index e365c7a2326..53baf6ee6a9 100644 --- a/packages/web-app-files/src/components/Search/List.vue +++ b/packages/web-app-files/src/components/Search/List.vue @@ -363,7 +363,7 @@ export default defineComponent({ : [] }) await nextTick() - this.scrollToResourceFromRoute(this.paginatedResources) + this.scrollToResourceFromRoute(this.paginatedResources, 'files-app-bar') } } }, diff --git a/packages/web-app-files/src/views/Favorites.vue b/packages/web-app-files/src/views/Favorites.vue index cdadb1bf570..ebd2afed905 100644 --- a/packages/web-app-files/src/views/Favorites.vue +++ b/packages/web-app-files/src/views/Favorites.vue @@ -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: { diff --git a/packages/web-app-files/src/views/shares/SharedWithMe.vue b/packages/web-app-files/src/views/shares/SharedWithMe.vue index 5fd0b2c0eca..fa400b3bd57 100644 --- a/packages/web-app-files/src/views/shares/SharedWithMe.vue +++ b/packages/web-app-files/src/views/shares/SharedWithMe.vue @@ -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' + ) } }) diff --git a/packages/web-app-files/src/views/shares/SharedWithOthers.vue b/packages/web-app-files/src/views/shares/SharedWithOthers.vue index fd51d6b5059..d59a7b292b8 100644 --- a/packages/web-app-files/src/views/shares/SharedWithOthers.vue +++ b/packages/web-app-files/src/views/shares/SharedWithOthers.vue @@ -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() { diff --git a/packages/web-app-files/src/views/spaces/GenericSpace.vue b/packages/web-app-files/src/views/spaces/GenericSpace.vue index 5cafdc16e6e..9f14018e9e0 100644 --- a/packages/web-app-files/src/views/spaces/GenericSpace.vue +++ b/packages/web-app-files/src/views/spaces/GenericSpace.vue @@ -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) diff --git a/packages/web-app-files/src/views/spaces/GenericTrash.vue b/packages/web-app-files/src/views/spaces/GenericTrash.vue index c60cbe74fde..e5e66c4f20b 100644 --- a/packages/web-app-files/src/views/spaces/GenericTrash.vue +++ b/packages/web-app-files/src/views/spaces/GenericTrash.vue @@ -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' ) }