mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	 42f6621afb
			
		
	
	42f6621afb
	
	
	
		
			
			Fixes https://github.com/chatwoot/chatwoot/issues/8436 Fixes https://github.com/chatwoot/chatwoot/issues/9767 Fixes https://github.com/chatwoot/chatwoot/issues/10156 Fixes https://github.com/chatwoot/chatwoot/issues/6031 Fixes https://github.com/chatwoot/chatwoot/issues/5696 Fixes https://github.com/chatwoot/chatwoot/issues/9250 Fixes https://github.com/chatwoot/chatwoot/issues/9762 --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
		
			
				
	
	
		
			51 lines
		
	
	
		
			944 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			944 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <script>
 | |
| import Spinner from 'shared/components/Spinner.vue';
 | |
| 
 | |
| export default {
 | |
|   components: {
 | |
|     Spinner,
 | |
|   },
 | |
|   props: {
 | |
|     isLoading: {
 | |
|       type: Boolean,
 | |
|       default: false,
 | |
|     },
 | |
|     icon: {
 | |
|       type: String,
 | |
|       default: '',
 | |
|     },
 | |
|     buttonIconClass: {
 | |
|       type: String,
 | |
|       default: '',
 | |
|     },
 | |
|     type: {
 | |
|       type: String,
 | |
|       default: 'button',
 | |
|     },
 | |
|     variant: {
 | |
|       type: String,
 | |
|       default: 'primary',
 | |
|     },
 | |
|   },
 | |
|   created() {
 | |
|     // eslint-disable-next-line
 | |
|     console.warn(
 | |
|       '[DEPRECATED] This component has been deprecated and will be removed soon. Please use v3/components/Form/Button.vue instead'
 | |
|     );
 | |
|   },
 | |
| };
 | |
| </script>
 | |
| 
 | |
| <template>
 | |
|   <button :type="type" class="button nice" :class="variant">
 | |
|     <fluent-icon
 | |
|       v-if="!isLoading && icon"
 | |
|       class="icon"
 | |
|       :class="buttonIconClass"
 | |
|       :icon="icon"
 | |
|     />
 | |
|     <Spinner v-if="isLoading" />
 | |
|     <slot />
 | |
|   </button>
 | |
| </template>
 |