mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	 88ed028a06
			
		
	
	88ed028a06
	
	
	
		
			
			* feat: Revamps search to use new search API's * Fixes search result spacing * Fixes message result * Fixes issue with empty search results * Remove console errors * Remove console errors * Fix console errors, canned responses * Fixes message rendering on results * Highlights search term * Fixes html rendering for emails * FIxes email rendering issues * Removes extra spaces and line breaks --------- Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
		
			
				
	
	
		
			43 lines
		
	
	
		
			922 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			922 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
|   <div class="inbox--name">
 | |
|     <fluent-icon class="inbox--icon" :icon="computedInboxClass" size="12" />
 | |
|     {{ inbox.name }}
 | |
|   </div>
 | |
| </template>
 | |
| <script>
 | |
| import { getInboxClassByType } from 'dashboard/helper/inbox';
 | |
| 
 | |
| export default {
 | |
|   props: {
 | |
|     inbox: {
 | |
|       type: Object,
 | |
|       default: () => {},
 | |
|     },
 | |
|   },
 | |
|   computed: {
 | |
|     computedInboxClass() {
 | |
|       const { phone_number: phoneNumber, channel_type: type } = this.inbox;
 | |
|       const classByType = getInboxClassByType(type, phoneNumber);
 | |
|       return classByType;
 | |
|     },
 | |
|   },
 | |
| };
 | |
| </script>
 | |
| <style scoped>
 | |
| .inbox--name {
 | |
|   align-items: center;
 | |
|   display: inline-flex;
 | |
|   padding: var(--space-micro) 0;
 | |
|   line-height: var(--space-slab);
 | |
|   font-weight: var(--font-weight-medium);
 | |
|   background: none;
 | |
|   color: var(--s-600);
 | |
|   font-size: var(--font-size-mini);
 | |
|   margin: 0 var(--space-one);
 | |
| }
 | |
| 
 | |
| .inbox--icon {
 | |
|   margin-right: var(--space-micro);
 | |
| }
 | |
| </style>
 |