diff options
author | Louis Chemineau <louis@chmn.me> | 2022-05-31 14:11:46 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-05-31 14:17:16 +0200 |
commit | 5fee0fbd5b7e3e8e0cb00154e0e6ae436cbf43bf (patch) | |
tree | 373cf5627f2686dc55de9c33e78876042988ad35 /apps/files_sharing/src | |
parent | 9a444a8be6c68ebe87d4833e51e5b0ee11b8c1c5 (diff) | |
download | nextcloud-server-5fee0fbd5b7e3e8e0cb00154e0e6ae436cbf43bf.tar.gz nextcloud-server-5fee0fbd5b7e3e8e0cb00154e0e6ae436cbf43bf.zip |
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 <louis@chmn.me>
Diffstat (limited to 'apps/files_sharing/src')
-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(', ') }, |