diff options
author | Louis Chemineau <louis@chmn.me> | 2024-12-04 13:37:48 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-12-04 13:37:48 +0100 |
commit | d11f3c4c235eb201571eb63dfad5bf049dd359d3 (patch) | |
tree | 24dc6a346840ec67304b07be5e0b188fba9e51b7 /apps | |
parent | 3027bb51afb6073058116fd185f59aa8e5d5e838 (diff) | |
download | nextcloud-server-d11f3c4c235eb201571eb63dfad5bf049dd359d3.tar.gz nextcloud-server-d11f3c4c235eb201571eb63dfad5bf049dd359d3.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>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/components/SharingInput.vue | 12 |
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 7a441865a78..f8949920772 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -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) |