mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	fix cropper logo
This commit is contained in:
		| @ -314,12 +314,16 @@ export default { | ||||
|       data.append('country_id', this.formData.country_id) | ||||
|       data.append('zip', this.formData.zip) | ||||
|       data.append('phone', this.formData.phone) | ||||
|       if (this.fileObject) { | ||||
|         data.append('logo', this.fileObject) | ||||
|       } | ||||
|  | ||||
|       let response = await this.editCompany(data) | ||||
|       if (response.data.success) { | ||||
|         this.isLoading = false | ||||
|         if (this.previewLogo) { | ||||
|           let logoData = new FormData() | ||||
|           logoData.append('company_logo', JSON.stringify({name: 'company', data: this.previewLogo})) | ||||
|           let logoUpload = await axios.post('/api/settings/company/upload-logo', logoData) | ||||
|           console.log(logoUpload.data) | ||||
|         } | ||||
|         window.toastr['success'](this.$t('settings.company_info.updated_message')) | ||||
|         return true | ||||
|       } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user