aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-11-19 08:40:12 +0100
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2019-11-26 11:12:35 +0000
commit644ee02fea69823a3b287d66048534da9c692bfe (patch)
tree6b0b6b7922955145140f8c568322ce5aab14d525 /apps/files_sharing/src
parente3bee2cb782b4897e4822c909d1dbbf2637f7b65 (diff)
downloadnextcloud-server-644ee02fea69823a3b287d66048534da9c692bfe.tar.gz
nextcloud-server-644ee02fea69823a3b287d66048534da9c692bfe.zip
Sort users and groups first in sharing input
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue
index df222eafe0c..c80bb02c6bc 100644
--- a/apps/files_sharing/src/components/SharingInput.vue
+++ b/apps/files_sharing/src/components/SharingInput.vue
@@ -207,8 +207,12 @@ export default {
// remove invalid data and format to user-select layout
const exactSuggestions = this.filterOutExistingShares(rawExactSuggestions)
.map(share => this.formatForMultiselect(share))
+ // sort by type so we can get user&groups first...
+ .sort((a, b) => a.shareType - b.shareType)
const suggestions = this.filterOutExistingShares(rawSuggestions)
.map(share => this.formatForMultiselect(share))
+ // sort by type so we can get user&groups first...
+ .sort((a, b) => a.shareType - b.shareType)
// lookup clickable entry
const lookupEntry = []