Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15384 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15384 Rev 15385
Línea 20... Línea 20...
20
	const onSubmit = () => {
20
	const onSubmit = () => {
21
		setloading(true)
21
		setloading(true)
22
		const values = Object.values(submitData)
22
		const values = Object.values(submitData)
Línea 23... Línea 23...
23
 
23
 
24
		if (!values.length || !values[0]) {
24
		if (!values.length || !values[0]) {
25
			return dispatch(addNotification({
25
			dispatch(addNotification({
26
				style: 'danger',
26
				style: 'danger',
27
				msg: 'El campo no puede estar vacio.'
27
				msg: 'El campo no puede estar vacio.'
-
 
28
			}))
28
			}))
29
			return setloading(false)
Línea 29... Línea 30...
29
		}
30
		}
Línea 30... Línea 31...
30
 
31
 
Línea 57... Línea 58...
57
									style: 'danger',
58
									style: 'danger',
58
									msg: `${key}: ${err}`
59
									msg: `${key}: ${err}`
59
								}))
60
								}))
60
							)
61
							)
61
						)
62
						)
62
					setloading(false)
-
 
63
					return
63
					return
64
				}
64
				}
65
				dispatch(addNotification({
65
				dispatch(addNotification({
66
					style: 'success',
66
					style: 'success',
67
					msg: 'Envio completado'
67
					msg: 'Envio completado'
Línea 70... Línea 70...
70
				setError(null)
70
				setError(null)
71
				closeModal()
71
				closeModal()
72
			})
72
			})
73
			.catch((err) => setError(err))
73
			.catch((err) => setError(err))
74
			.finally(() => setloading(false))
74
			.finally(() => setloading(false))
75
		setloading(false)
-
 
76
	}
75
	}
Línea 77... Línea 76...
77
 
76
 
78
	return (
77
	return (
79
		<Modal size="lg" show onHide={closeModal}>
78
		<Modal size="lg" show onHide={closeModal}>