Skip to content

Commit

Permalink
Rename resourceId query option to shareId
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Apr 28, 2022
1 parent c656c60 commit a2605b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ export default {
resource = await this.$client.files.fileInfo(path, DavProperties.Default)
} else if (this.isSpacesShareLocation) {
path = buildWebDavSpacesPath(
[SHARE_JAIL_ID, this.$route.query.resourceId].join('!'),
[SHARE_JAIL_ID, this.$route.query.shareId].join('!'),
path
)
await this.$client.files.createFolder(path)
Expand Down Expand Up @@ -502,7 +502,7 @@ export default {
resource = await this.$client.files.fileInfo(path, DavProperties.Default)
} else if (this.isSpacesShareLocation) {
path = buildWebDavSpacesPath(
[SHARE_JAIL_ID, this.$route.query.resourceId].join('!'),
[SHARE_JAIL_ID, this.$route.query.shareId].join('!'),
path
)
await this.$client.files.putFileContents(path, '')
Expand Down Expand Up @@ -581,7 +581,7 @@ export default {
resource = await this.$client.files.fileInfo(path, DavProperties.Default)
} else if (this.isSpacesShareLocation) {
path = buildWebDavSpacesPath(
[SHARE_JAIL_ID, this.$route.query.resourceId].join('!'),
[SHARE_JAIL_ID, this.$route.query.shareId].join('!'),
path
)
resource = await this.$client.files.fileInfo(path, DavProperties.Default)
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app-files/src/router/spaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const buildRoutes = (components: RouteComponents): RouteConfig[] => [
meta: {
patchCleanPath: true,
title: $gettext('Files shared with me'),
contextQueryItems: ['resourceId']
contextQueryItems: ['shareId']
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions packages/web-app-files/src/views/shares/SharedResource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default defineComponent({
MixinFilesListFilter
],
setup() {
const shareId = useRouteQuery('resourceId')
const shareId = useRouteQuery('shareId')
const shareName = useRouteParam('shareName')
const relativePath = useRouteParam('item', '')
return {
Expand All @@ -142,7 +142,7 @@ export default defineComponent({
shareName: unref(shareName)
},
query: {
resourceId: unref(shareId)
shareId: unref(shareId)
}
}),
shareId,
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app-files/src/views/shares/SharedWithMe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default defineComponent({
unref(hasSpaces) ? { name: 'shareName', path: 'item' } : null
)
const resourceTargetQueryMapping = computed(() =>
unref(hasSpaces) ? { id: 'resourceId' } : null
unref(hasSpaces) ? { id: 'shareId' } : null
)
const viewMode = computed(() =>
Expand Down

0 comments on commit a2605b6

Please sign in to comment.