mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 02:57:57 +00:00 
			
		
		
		
	 8cf05f1d9f
			
		
	
	8cf05f1d9f
	
	
	
		
			
			Ability to edit contact information in conversation sidebar Co-authored-by: Sojan <sojan@pepalo.com>
		
			
				
	
	
		
			44 lines
		
	
	
		
			727 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			727 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <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>
 |