Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 11059 | Rev 11061 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11059 Rev 11060
Línea 37... Línea 37...
37
		})
37
		})
Línea 38... Línea 38...
38
 
38
 
39
		axios.post(add_link, submitData)
39
		axios.post(add_link, submitData)
40
			.then(({ data }) => {
40
			.then(({ data }) => {
41
				if (!data.success) {
41
				if (!data.success) {
42
					dispatch(addNotification({
42
					return dispatch(addNotification({
43
						style: 'danger',
43
						style: 'danger',
44
						msg: 'Ha ocurrido un error'
44
						msg: 'Ha ocurrido un error'
45
					}))
45
					}))
Línea 142... Línea 142...
142
								style={{ height: '2rem' }}
142
								style={{ height: '2rem' }}
143
							/>
143
							/>
144
						</div>
144
						</div>
145
						<div className='form-group'>
145
						<div className='form-group'>
146
							<label className="form-label">Estatus</label>
146
							<label className="form-label">Estatus</label>
147
							<select className='form-control' name='evaluation' ref={register}>
147
							<select className='form-control' name='status' ref={register}>
148
								{
148
								{
149
									statusOptions.map(({ label, value }) => {
149
									statusOptions.map(({ label, value }) => {
150
										return <option key={value} value={value}>{label}</option>
150
										return <option key={value} value={value}>{label}</option>
151
									})
151
									})
152
								}
152
								}
153
							</select>
153
							</select>
154
						</div>
154
						</div>
155
					</div>
155
					</div>
156
				</Modal.Body>
156
				</Modal.Body>
157
				<Modal.Footer>
157
				<Modal.Footer>
158
					<Button variant="primary" type='submit' style={isShowSecondPage ? { display: 'none' } : { display: 'block' }}>
158
					<Button variant="primary" style={isShowSecondPage ? { display: 'none' } : { display: 'block' }} onClick={showSecondPage}>
159
						Siguiente
159
						Siguiente
160
					</Button>
160
					</Button>
161
					<Button variant="primary" type='submit' style={isShowSecondPage ? { display: 'block' } : { display: 'none' }}>
161
					<Button variant="primary" type='submit' style={isShowSecondPage ? { display: 'block' } : { display: 'none' }}>
162
						Enviar
162
						Enviar
163
					</Button>
163
					</Button>