mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	 7b63cbe1f7
			
		
	
	7b63cbe1f7
	
	
	
		
			
			* [Enhancement] Select widget_color while creating inbox * Fix codeclimate issues * Fix !important
		
			
				
	
	
		
			33 lines
		
	
	
		
			660 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			660 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
|   <transition name="modal-fade">
 | |
|     <div v-if="show" class="modal-mask" transition="modal" @click="close">
 | |
|       <i class="ion-android-close modal--close" @click="close"></i>
 | |
|       <div class="modal-container" :class="className" @click.stop>
 | |
|         <slot></slot>
 | |
|       </div>
 | |
|     </div>
 | |
|   </transition>
 | |
| </template>
 | |
| 
 | |
| <script>
 | |
| export default {
 | |
|   props: {
 | |
|     show: Boolean,
 | |
|     onClose: Function,
 | |
|     className: String,
 | |
|   },
 | |
|   mounted() {
 | |
|     document.addEventListener('keydown', e => {
 | |
|       if (this.show && e.keyCode === 27) {
 | |
|         this.onClose();
 | |
|       }
 | |
|     });
 | |
|   },
 | |
|   methods: {
 | |
|     close() {
 | |
|       this.onClose();
 | |
|     },
 | |
|   },
 | |
| };
 | |
| </script>
 |