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>
This commit is contained in:
parent
e3bee2cb78
commit
644ee02fea
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -207,8 +207,12 @@ export default {
|
||||||
// remove invalid data and format to user-select layout
|
// remove invalid data and format to user-select layout
|
||||||
const exactSuggestions = this.filterOutExistingShares(rawExactSuggestions)
|
const exactSuggestions = this.filterOutExistingShares(rawExactSuggestions)
|
||||||
.map(share => this.formatForMultiselect(share))
|
.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)
|
const suggestions = this.filterOutExistingShares(rawSuggestions)
|
||||||
.map(share => this.formatForMultiselect(share))
|
.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
|
// lookup clickable entry
|
||||||
const lookupEntry = []
|
const lookupEntry = []
|
||||||
|
|
Loading…
Reference in New Issue