Пофиксил зависания кнопок входа/регистрации
This commit is contained in:
		
							parent
							
								
									6e0b29f2a2
								
							
						
					
					
						commit
						2c8fdce6aa
					
				|  | @ -38,6 +38,7 @@ export default { | ||||||
|             let validation = this.validate(); |             let validation = this.validate(); | ||||||
|             if (validation !== true){ |             if (validation !== true){ | ||||||
|                 alert(validation); |                 alert(validation); | ||||||
|  |                 this.loading = false; | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|             this.userStore.login(this.email, this.password, this.rememberMe).then((isLogged) => { |             this.userStore.login(this.email, this.password, this.rememberMe).then((isLogged) => { | ||||||
|  |  | ||||||
|  | @ -43,6 +43,7 @@ export default { | ||||||
|             let validation = this.validate(); |             let validation = this.validate(); | ||||||
|             if (validation !== true){ |             if (validation !== true){ | ||||||
|                 alert(validation); |                 alert(validation); | ||||||
|  |                 this.loading = false; | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|             this.userStore.registration(this.login, this.email, this.password, this.repeatPassword).then((isRegistred)=>{ |             this.userStore.registration(this.login, this.email, this.password, this.repeatPassword).then((isRegistred)=>{ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue