mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	 42f6621afb
			
		
	
	42f6621afb
	
	
	
		
			
			Fixes https://github.com/chatwoot/chatwoot/issues/8436 Fixes https://github.com/chatwoot/chatwoot/issues/9767 Fixes https://github.com/chatwoot/chatwoot/issues/10156 Fixes https://github.com/chatwoot/chatwoot/issues/6031 Fixes https://github.com/chatwoot/chatwoot/issues/5696 Fixes https://github.com/chatwoot/chatwoot/issues/9250 Fixes https://github.com/chatwoot/chatwoot/issues/9762 --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
		
			
				
	
	
		
			70 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <script>
 | |
| import ConversationCard from './widgets/conversation/ConversationCard.vue';
 | |
| export default {
 | |
|   components: {
 | |
|     ConversationCard,
 | |
|   },
 | |
|   inject: [
 | |
|     'selectConversation',
 | |
|     'deSelectConversation',
 | |
|     'assignAgent',
 | |
|     'assignTeam',
 | |
|     'assignLabels',
 | |
|     'updateConversationStatus',
 | |
|     'toggleContextMenu',
 | |
|     'markAsUnread',
 | |
|     'assignPriority',
 | |
|     'isConversationSelected',
 | |
|   ],
 | |
|   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,
 | |
|     },
 | |
|     showAssignee: {
 | |
|       type: Boolean,
 | |
|       default: false,
 | |
|     },
 | |
|   },
 | |
| };
 | |
| </script>
 | |
| 
 | |
| <template>
 | |
|   <ConversationCard
 | |
|     :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
 | |
|     @selectConversation="selectConversation"
 | |
|     @deSelectConversation="deSelectConversation"
 | |
|     @assignAgent="assignAgent"
 | |
|     @assignTeam="assignTeam"
 | |
|     @assignLabel="assignLabels"
 | |
|     @updateConversationStatus="updateConversationStatus"
 | |
|     @contextMenuToggle="toggleContextMenu"
 | |
|     @markAsUnread="markAsUnread"
 | |
|     @assignPriority="assignPriority"
 | |
|   />
 | |
| </template>
 |