mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 02:57:57 +00:00 
			
		
		
		
	 fe2af370e0
			
		
	
	fe2af370e0
	
	
	
		
			
			* Feat: Show notes panel on CRM page Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { action } from '@storybook/addon-actions';
 | |
| import ContactNote from '../components/ContactNote.vue';
 | |
| 
 | |
| export default {
 | |
|   title: 'Components/Notes/Note',
 | |
|   component: ContactNote,
 | |
|   argTypes: {
 | |
|     id: {
 | |
|       control: {
 | |
|         type: 'number',
 | |
|       },
 | |
|     },
 | |
|     note: {
 | |
|       defaultValue:
 | |
|         'A copy and paste musical notes symbols & music symbols collection for easy access.',
 | |
|       control: {
 | |
|         type: 'text',
 | |
|       },
 | |
|     },
 | |
|     userName: {
 | |
|       defaultValue: 'John Doe',
 | |
|       control: {
 | |
|         type: 'text',
 | |
|       },
 | |
|     },
 | |
|     timeStamp: {
 | |
|       defaultValue: 1618046084,
 | |
|       control: {
 | |
|         type: 'number',
 | |
|       },
 | |
|     },
 | |
|     thumbnail: {
 | |
|       defaultValue: 'https://randomuser.me/api/portraits/men/62.jpg',
 | |
|       control: {
 | |
|         type: 'text',
 | |
|       },
 | |
|     },
 | |
|   },
 | |
| };
 | |
| 
 | |
| const Template = (args, { argTypes }) => ({
 | |
|   props: Object.keys(argTypes),
 | |
|   components: { ContactNote },
 | |
|   template:
 | |
|     '<contact-note v-bind="$props" @edit="onEdit" @delete="onDelete"></contact-note>',
 | |
| });
 | |
| 
 | |
| export const Note = Template.bind({});
 | |
| Note.args = {
 | |
|   onEdit: action('Edit'),
 | |
|   onDelete: action('Delete'),
 | |
| };
 |