mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -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>
This commit is contained in:
parent
9a444a8be6
commit
5fee0fbd5b
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