mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	<img width="1240" alt="Screenshot 2025-06-05 at 12 39 04 AM" src="https://github.com/user-attachments/assets/0071cd23-38c3-4638-946e-f1fbd11ec845" /> ## Changes Give the admins an option to delete conversation via the context menu - enable conversation deletion in routes and controller - expose delete API on conversations - add delete option in conversation context menu and integrate with card and list - implement store action and mutation for delete - update i18n with new strings fixes: https://github.com/chatwoot/chatwoot/issues/947 --------- Co-authored-by: iamsivin <iamsivin@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Pranav <pranavrajs@gmail.com>
		
			
				
	
	
		
			74 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
<script>
 | 
						|
import ConversationCard from './widgets/conversation/ConversationCard.vue';
 | 
						|
export default {
 | 
						|
  components: {
 | 
						|
    ConversationCard,
 | 
						|
  },
 | 
						|
  inject: [
 | 
						|
    'selectConversation',
 | 
						|
    'deSelectConversation',
 | 
						|
    'assignAgent',
 | 
						|
    'assignTeam',
 | 
						|
    'assignLabels',
 | 
						|
    'updateConversationStatus',
 | 
						|
    'toggleContextMenu',
 | 
						|
    'markAsUnread',
 | 
						|
    'markAsRead',
 | 
						|
    'assignPriority',
 | 
						|
    'isConversationSelected',
 | 
						|
    'deleteConversation',
 | 
						|
  ],
 | 
						|
  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
 | 
						|
    @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"
 | 
						|
    @mark-as-read="markAsRead"
 | 
						|
    @assign-priority="assignPriority"
 | 
						|
    @delete-conversation="deleteConversation"
 | 
						|
  />
 | 
						|
</template>
 |