mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 13:11:08 -04:00 
			
		
		
		
	init crater
This commit is contained in:
		
							
								
								
									
										45
									
								
								resources/assets/js/components/settings/MailSettings.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								resources/assets/js/components/settings/MailSettings.vue
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,45 @@ | ||||
| <script> | ||||
| let mailgunComponent = { | ||||
|   template: '#mailgun-template' | ||||
| } | ||||
|  | ||||
| let sendgridComponent = { | ||||
|   template: '#sendgrid-template' | ||||
| } | ||||
|  | ||||
| let sparkPostComponent = { | ||||
|   template: '#sparkpost-template' | ||||
| } | ||||
|  | ||||
| let smtpComponent = { | ||||
|   template: '#smtp-template' | ||||
| } | ||||
|  | ||||
| export default { | ||||
|   components: { | ||||
|     mailgun: mailgunComponent, | ||||
|     sendgrid: sendgridComponent, | ||||
|     sparkpost: sparkPostComponent, | ||||
|     smtp: smtpComponent | ||||
|   }, | ||||
|   props: { | ||||
|     view: { | ||||
|       type: Array, | ||||
|       require: true, | ||||
|       default: Array | ||||
|     } | ||||
|   }, | ||||
|   data () { | ||||
|     return { | ||||
|       currentView: 'mailgun' | ||||
|     } | ||||
|   }, | ||||
|   mounted () { | ||||
|     let views = ['mailgun', 'sendgrid', 'sparkpost', 'smtp'] | ||||
|  | ||||
|     if (this.view && views.indexOf(this.view) > -1) { | ||||
|       this.currentView = this.view | ||||
|     }; | ||||
|   } | ||||
| } | ||||
| </script> | ||||
		Reference in New Issue
	
	Block a user