added the avatarselectoption
Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
@@ -1,12 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<multiselect v-model="addAcl" :options="unallocatedSharees" label="label"
|
<!-- <multiselect v-model="addAcl" :options="unallocatedSharees" label="label"
|
||||||
@input="clickAddAcl" @search-change="asyncFind">
|
@input="clickAddAcl" @search-change="asyncFind">
|
||||||
<template #option="scope">
|
<template #option="scope">
|
||||||
<avatar :user="scope.option.value.shareWith" />
|
<avatar :user="scope.option.value.shareWith" />
|
||||||
<span class="avatarLabel">{{ scope.option.label }} </span>
|
<span class="avatarLabel">{{ scope.option.label }} </span>
|
||||||
</template>
|
</template>
|
||||||
</multiselect>
|
</multiselect> -->
|
||||||
|
|
||||||
|
<multiselect
|
||||||
|
v-model="addAcl"
|
||||||
|
:options="formatedSharees"
|
||||||
|
:user-select="true"
|
||||||
|
label="displayName"
|
||||||
|
track-by="user"
|
||||||
|
@input="clickAddAcl"
|
||||||
|
@search-change="asyncFind" />
|
||||||
|
|
||||||
<ul
|
<ul
|
||||||
id="shareWithList"
|
id="shareWithList"
|
||||||
@@ -72,6 +81,17 @@ export default {
|
|||||||
...mapGetters({
|
...mapGetters({
|
||||||
sharees: 'sharees'
|
sharees: 'sharees'
|
||||||
}),
|
}),
|
||||||
|
formatedSharees() {
|
||||||
|
return this.unallocatedSharees.map(item => {
|
||||||
|
return {
|
||||||
|
user: item.label,
|
||||||
|
displayName: item.label,
|
||||||
|
// desc: 'desc',
|
||||||
|
icon: item.value.shareType === 1 ? 'icon-group' : 'icon-user',
|
||||||
|
isNoUser: item.value.shareType === 1
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
unallocatedSharees() {
|
unallocatedSharees() {
|
||||||
return this.sharees.filter((sharee) => {
|
return this.sharees.filter((sharee) => {
|
||||||
return Object.values(this.board.acl).findIndex((acl) => {
|
return Object.values(this.board.acl).findIndex((acl) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user