1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-24 16:36:46 +00:00
bramw_baserow/web-frontend/modules/database/components/card/RowCardFieldMultipleCollaborators.vue
2023-04-28 10:56:33 +00:00

38 lines
1002 B
Vue

<template functional>
<div class="card-multiple-collaborators__list-wrapper">
<div class="card-multiple-collaborators__list">
<div
v-for="item in props.value"
:key="item.id"
class="card-multiple-collaborators__item"
>
<template v-if="item.id && item.name">
<span
class="field-multiple-collaborators__name background-color--light-gray"
>{{
$options.methods.getCollaboratorName(item, parent.$store)
}}</span
>
<div
v-if="props.value"
class="field-multiple-collaborators__initials"
>
{{
$options.methods.getCollaboratorNameInitials(item, parent.$store)
}}
</div>
</template>
</div>
</div>
</div>
</template>
<script>
import collaboratorName from '@baserow/modules/database/mixins/collaboratorName'
export default {
height: 30,
mixins: [collaboratorName],
}
</script>