Skip to content

Commit d1ac891

Browse files
authored
fix: video loading inside share spaces (#2613)
1 parent 1ea00e8 commit d1ac891

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/web-pkg/src/composables/appDefaults/useAppFolderHandling.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Ref, ref, unref, MaybeRef } from 'vue'
22
import { dirname } from 'path'
33
import { ClientService, folderService } from '../../services'
44
import { useAppFileHandling } from './useAppFileHandling'
5-
import { isSearchResource, Resource } from '@opencloud-eu/web-client'
5+
import { isSearchResource, isShareSpaceResource, Resource } from '@opencloud-eu/web-client'
66
import { FileContext } from './types'
77
import { RouteLocationNormalizedLoaded } from 'vue-router'
88
import { useFileRouteReplace } from '../router/useFileRouteReplace'
@@ -105,6 +105,10 @@ export function useAppFolderHandling({
105105
path
106106
})
107107

108+
if (isShareSpaceResource(space)) {
109+
children.forEach((r) => (r.remoteItemId = space.id))
110+
}
111+
108112
if (resource.type === 'file') {
109113
resourcesStore.initResourceList({
110114
// FIXME: currentFolder should be null?!

0 commit comments

Comments
 (0)