Skip to content

Commit

Permalink
Fix link creation for spaces, remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Aug 23, 2022
1 parent 0834153 commit 18c523e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
17 changes: 0 additions & 17 deletions packages/web-app-files/src/components/SideBar/Shares/FileLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,23 +217,6 @@ export default defineComponent({
}
},
availableRoleOptions() {
if (this.share?.incoming && this.canCreatePublicLinks) {
return LinkShareRoles.filterByBitmask(
parseInt(this.share.permissions),
this.highlightedFile.isFolder,
this.hasPublicLinkEditing,
this.hasPublicLinkAliasSupport
)
}
return LinkShareRoles.list(
this.highlightedFile.isFolder,
this.hasPublicLinkEditing,
this.hasPublicLinkAliasSupport
)
},
passwordEnforced() {
return (
this.capabilities.files_sharing.public.password?.enforced_for || {
Expand Down
3 changes: 2 additions & 1 deletion packages/web-app-files/src/components/SideBar/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ export default defineComponent({
}
if (
!pathSegments.length &&
this.highlightedFile?.shareTypes?.includes(ShareTypes.link.value)
this.highlightedFile?.shareTypes?.includes(ShareTypes.link.value) &&
isLocationSpacesActive(this.$router, 'files-spaces-personal')
) {
// alias link for a single resource
return false
Expand Down

0 comments on commit 18c523e

Please sign in to comment.