mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-28 12:11:08 -04:00 
			
		
		
		
	Merge branch 'master'
This commit is contained in:
		| @ -313,7 +313,7 @@ export default { | ||||
|         name: this.formData.name, | ||||
|         email: this.formData.email, | ||||
|       } | ||||
|  | ||||
|       try { | ||||
|         if ( | ||||
|           this.formData.password != null && | ||||
|           this.formData.password !== undefined && | ||||
| @ -332,10 +332,6 @@ export default { | ||||
|  | ||||
|         let languageRes = await this.updateUserSettings(languageData) | ||||
|  | ||||
|       // if(languageRes) { | ||||
|       //   window.i18n.locale = this.language.code | ||||
|       // } | ||||
|  | ||||
|         if (response.data.success) { | ||||
|           this.isLoading = false | ||||
|  | ||||
| @ -349,6 +345,7 @@ export default { | ||||
|                 data: this.previewAvatar, | ||||
|               }) | ||||
|             ) | ||||
|  | ||||
|             this.uploadAvatar(avatarData) | ||||
|           } | ||||
|  | ||||
| @ -358,14 +355,11 @@ export default { | ||||
|  | ||||
|           this.formData.password = '' | ||||
|           this.formData.confirm_password = '' | ||||
|         } | ||||
|       } catch (error) { | ||||
|         this.isLoading = false | ||||
|         return true | ||||
|       } | ||||
|  | ||||
|       window.toastr['error'](response.data.error) | ||||
|  | ||||
|       this.isLoading = false | ||||
|  | ||||
|       return true | ||||
|     }, | ||||
|   }, | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user