mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
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> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
254cb7ad0c
commit
8a2b70fe67
3 changed files with 5 additions and 4 deletions
|
|
@ -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(', ')
|
||||
},
|
||||
|
||||
|
|
|
|||
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue