Skip to content

Commit

Permalink
Add default DAV properties to the fetch space resources request
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Mar 14, 2022
1 parent 0a0bf91 commit 4c3645e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/web-app-files/src/services/folder/loaderProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useTask } from 'vue-concurrency'
import { isLocationSpacesActive } from '../../router'
import { clientService } from 'web-pkg/src/services'
import { buildResource, buildSpace, buildWebDavSpacesPath } from '../../helpers/resources'
import { DavProperties } from 'web-pkg/src/constants'

export class FolderLoaderProject implements FolderLoader {
public isEnabled(router: Router): boolean {
Expand Down Expand Up @@ -31,7 +32,9 @@ export class FolderLoaderProject implements FolderLoader {
ref.space = buildSpace(graphResponse.data)

const webDavResponse = yield ref.$client.files.list(
buildWebDavSpacesPath(ref.$route.params.spaceId, path || '')
buildWebDavSpacesPath(ref.$route.params.spaceId, path || ''),
1,
DavProperties.Default
)

let resources = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('InviteCollaboratorForm', () => {
})
describe('behaves correctly', () => {
it.todo('upon mount fetches recipients')
it('the "share" button', async () => {
it('clicking the invite-sharees button calls the "share"-action', async () => {
const selectedCollaborators = [
{ shareWith: 'marie', value: { shareType: ShareTypes.user.value }, label: 'label' }
]
Expand Down

0 comments on commit 4c3645e

Please sign in to comment.