aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-12-04 13:37:48 +0100
committernfebe <fenn25.fn@gmail.com>2025-01-02 15:28:22 +0100
commit377068e97fbc1ec8bf401f933c7a367563632900 (patch)
tree34ec91d2bf6a10921534bcb58dcbfb741bd0a526
parentdf02f539cc8074bcd580d82d63cf205ea67938fb (diff)
downloadnextcloud-server-377068e97fbc1ec8bf401f933c7a367563632900.tar.gz
nextcloud-server-377068e97fbc1ec8bf401f933c7a367563632900.zip
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 <louis@chmn.me>
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue
index 601e297aaa1..c12e8a92111 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)