diff options
author | Louis Chemineau <louis@chmn.me> | 2022-05-31 15:11:46 +0300 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-06-09 16:06:56 +0300 |
commit | 8a2b70fe67c8720ab4d6e0e91517fac09a59ceaa (patch) | |
tree | a1e976bcac84c77260ca62b35f7025fbdf8363c7 /apps/files_sharing | |
parent | 254cb7ad0cb2ebf31ca3124c48ef3de2b6e45e56 (diff) |
Fix share permissions renderingbackport/32670/stable24
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 <louis@chmn.me>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/src/components/SharePermissionsEditor.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharePermissionsEditor.vue b/apps/files_sharing/src/components/SharePermissionsEditor.vue index 9c0a2378af8..1dfab4112b3 100644 --- a/apps/files_sharing/src/components/SharePermissionsEditor.vue +++ b/apps/files_sharing/src/components/SharePermissionsEditor.vue @@ -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(', ') }, |