Skip to content

Commit

Permalink
fix(files_sharing): List of share type during recipient lookup
Browse files Browse the repository at this point in the history
ShareType lists both names and ids so Object.entries return too much.

This was also making useless the following condition adding ShareType.Email

Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge authored and nfebe committed Dec 9, 2024
1 parent fb0da1d commit e939902
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/files_sharing/src/components/SharingInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,17 @@ export default {
lookup = true
}

const shareType = Object.values(ShareType)
const shareType = [
ShareType.User,
ShareType.Group,
ShareType.Remote,
ShareType.RemoteGroup,
ShareType.Team,
ShareType.Room,
ShareType.Guest,
ShareType.Deck,
ShareType.ScienceMesh,
]

if (getCapabilities().files_sharing.public.enabled === true) {
shareType.push(ShareType.Email)
Expand Down

0 comments on commit e939902

Please sign in to comment.