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 committed Dec 4, 2024
1 parent 3027bb5 commit d11f3c4
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 @@ -168,7 +168,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 d11f3c4

Please sign in to comment.