From e939902d0f7148b949aa0d8bb00e6efcb542ff95 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 4 Dec 2024 13:37:48 +0100 Subject: [PATCH] fix(files_sharing): List of share type during recipient lookup 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 --- apps/files_sharing/src/components/SharingInput.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index 601e297aaa1f8..c12e8a9211107 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -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)