Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix share permissions rendering
The `SHARE` permissions falls into the `default` case in the switch case, causing the rendering to look like ` , Upload, Read`.

This PR changes the return value of the `default` case and adds a `filter` to remove those values.

Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
artonge committed Jun 9, 2022
commit 8a2b70fe67c8720ab4d6e0e91517fac09a59ceaa
3 changes: 2 additions & 1 deletion apps/files_sharing/src/components/SharePermissionsEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,10 @@ export default {
case this.atomicPermissions.DELETE:
return this.t('files_sharing', 'Delete')
default:
return ''
return null
}
})
.filter(permissionLabel => permissionLabel !== null)
.join(', ')
},

Expand Down
4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.