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>
pull/32670/head
Louis Chemineau 2022-05-31 14:11:46 +07:00
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(', ')
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long