aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components/SharingInput.vue
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-11-26 15:24:36 +0100
committerGitHub <noreply@github.com>2019-11-26 15:24:36 +0100
commitfa1b23b67aec1fcc8f6e8093fce184a308aed647 (patch)
treee5a96ef34c6ce2272a15700bddeca2df4e4db172 /apps/files_sharing/src/components/SharingInput.vue
parentb607e3e6f41853600dd90820e82ceab5859c13c5 (diff)
parent644ee02fea69823a3b287d66048534da9c692bfe (diff)
downloadnextcloud-server-fa1b23b67aec1fcc8f6e8093fce184a308aed647.tar.gz
nextcloud-server-fa1b23b67aec1fcc8f6e8093fce184a308aed647.zip
Merge pull request #17995 from nextcloud/fix/sharing/federation-order
Sort users and groups first in sharing input
Diffstat (limited to 'apps/files_sharing/src/components/SharingInput.vue')
-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 = []