mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-02 20:18:08 +00:00 
			
		
		
		
	These fixes are all auto generated and can be merged directly Fixes the following issues 1. Event used on components should be hypenated 2. Attribute orders in components 3. Use `unmounted` instead of `destroyed` 4. Add explicit `emits` declarations for components, autofixed [using this script](https://gist.github.com/scmmishra/6f549109b96400006bb69bbde392eddf) We ignore the top level v-if for now, we will fix it later
		
			
				
	
	
		
			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
 | 
						|
    @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>
 |