mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: iamsivin <iamsivin@gmail.com> Co-authored-by: Sojan <sojan@pepalo.com>
28 lines
496 B
Vue
28 lines
496 B
Vue
<template>
|
|
<grouped-avatars :users="users" />
|
|
</template>
|
|
|
|
<script>
|
|
import GroupedAvatars from 'widget/components/GroupedAvatars.vue';
|
|
|
|
export default {
|
|
name: 'AvailableAgents',
|
|
components: { GroupedAvatars },
|
|
props: {
|
|
agents: {
|
|
type: Array,
|
|
default: () => [],
|
|
},
|
|
},
|
|
computed: {
|
|
users() {
|
|
return this.agents.slice(0, 4).map(agent => ({
|
|
id: agent.id,
|
|
avatar: agent.avatar_url,
|
|
name: agent.name,
|
|
}));
|
|
},
|
|
},
|
|
};
|
|
</script>
|