Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused code, rename share path #9843

Merged
merged 11 commits into from
Oct 24, 2023
9 changes: 0 additions & 9 deletions packages/web-pkg/src/components/Search/ResourcePreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,12 @@ export default defineComponent({

const space = computed(() => getMatchingSpace(unref(resource)))

const spaceName = computed(() => {
if (isShareSpaceResource(unref(space))) {
return path.join($gettext('Shared with me'), unref(space).name)
}

return unref(space).name
})

const resourceDisabled = computed(() => {
return unref(resource).disabled === true
})

return {
space,
spaceName,
...useFileActions(),
getInternalSpace,
getMatchingSpace,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const useFolderLink = (options: ResourceRouteResolverOptions = {}) => {
}

if (isShareSpaceResource(space)) {
return path.join($gettext('Shares'), $gettext('Shared with me'), space.name)
return path.join($gettext('Shares'), space.name)
}

return space.name
Expand Down