mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	 075b0292b5
			
		
	
	075b0292b5
	
	
	
		
			
			Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
		
			
				
	
	
		
			73 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
|   <conversation-card
 | |
|     :key="source.id"
 | |
|     :active-label="label"
 | |
|     :team-id="teamId"
 | |
|     :folders-id="foldersId"
 | |
|     :chat="source"
 | |
|     :conversation-type="conversationType"
 | |
|     :selected="isConversationSelected(source.id)"
 | |
|     :show-assignee="showAssignee"
 | |
|     :enable-context-menu="true"
 | |
|     @select-conversation="selectConversation"
 | |
|     @de-select-conversation="deSelectConversation"
 | |
|     @assign-agent="assignAgent"
 | |
|     @assign-team="assignTeam"
 | |
|     @assign-label="assignLabels"
 | |
|     @update-conversation-status="updateConversationStatus"
 | |
|     @context-menu-toggle="toggleContextMenu"
 | |
|     @mark-as-unread="markAsUnread"
 | |
|     @assign-priority="assignPriority"
 | |
|   />
 | |
| </template>
 | |
| 
 | |
| <script>
 | |
| import ConversationCard from './widgets/conversation/ConversationCard.vue';
 | |
| export default {
 | |
|   components: {
 | |
|     ConversationCard,
 | |
|   },
 | |
|   inject: [
 | |
|     'selectConversation',
 | |
|     'deSelectConversation',
 | |
|     'assignAgent',
 | |
|     'assignTeam',
 | |
|     'assignLabels',
 | |
|     'updateConversationStatus',
 | |
|     'toggleContextMenu',
 | |
|     'markAsUnread',
 | |
|     'assignPriority',
 | |
|   ],
 | |
|   props: {
 | |
|     source: {
 | |
|       type: Object,
 | |
|       required: true,
 | |
|     },
 | |
|     teamId: {
 | |
|       type: [String, Number],
 | |
|       default: 0,
 | |
|     },
 | |
|     label: {
 | |
|       type: String,
 | |
|       default: '',
 | |
|     },
 | |
|     conversationType: {
 | |
|       type: String,
 | |
|       default: '',
 | |
|     },
 | |
|     foldersId: {
 | |
|       type: [String, Number],
 | |
|       default: 0,
 | |
|     },
 | |
|     isConversationSelected: {
 | |
|       type: Function,
 | |
|       default: () => {},
 | |
|     },
 | |
|     showAssignee: {
 | |
|       type: Boolean,
 | |
|       default: false,
 | |
|     },
 | |
|   },
 | |
| };
 | |
| </script>
 |