mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	feat: Ability to edit a contact (#1092)
Ability to edit contact information in conversation sidebar Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
		
							
								
								
									
										43
									
								
								app/javascript/dashboard/components/buttons/Button.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								app/javascript/dashboard/components/buttons/Button.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| <template> | ||||
|   <button :type="type" class="button nice" :class="variant" @click="onClick"> | ||||
|     <i | ||||
|       v-if="!isLoading && icon" | ||||
|       class="icon" | ||||
|       :class="buttonIconClass + ' ' + icon" | ||||
|     /> | ||||
|     <spinner v-if="isLoading" /> | ||||
|     <slot></slot> | ||||
|   </button> | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| export default { | ||||
|   props: { | ||||
|     isLoading: { | ||||
|       type: Boolean, | ||||
|       default: false, | ||||
|     }, | ||||
|     icon: { | ||||
|       type: String, | ||||
|       default: '', | ||||
|     }, | ||||
|     buttonIconClass: { | ||||
|       type: String, | ||||
|       default: '', | ||||
|     }, | ||||
|     type: { | ||||
|       type: String, | ||||
|       default: 'button', | ||||
|     }, | ||||
|     variant: { | ||||
|       type: String, | ||||
|       default: 'primary', | ||||
|     }, | ||||
|   }, | ||||
|   methods: { | ||||
|     onClick(e) { | ||||
|       this.$emit('click', e); | ||||
|     }, | ||||
|   }, | ||||
| }; | ||||
| </script> | ||||
		Reference in New Issue
	
	Block a user
	 Pranav Raj S
					Pranav Raj S