Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 12149 Rev 12995
Línea 22... Línea 22...
22
		if (!url && action) {
22
		if (!url && action) {
23
			return dispatch(action())
23
			return dispatch(action())
24
		}
24
		}
Línea 25... Línea 25...
25
 
25
 
26
		if (!url && onComplete) {
26
		if (!url && onComplete) {
-
 
27
			onComplete()
-
 
28
			closeModal()
27
			return onComplete()
29
			return
Línea 28... Línea 30...
28
		}
30
		}
29
 
31
 
30
		axios.post(url)
32
		axios.post(url)
31
			.then(({ data }) => {
33
			.then(({ data }) => {
32
				if (!data.success) {
34
				if (!data.success) {
33
					return dispatch(addNotification({
35
					return dispatch(addNotification({
34
						style: 'danger',
36
						style: 'danger',
35
						msg: data.data
37
						msg: data.data
36
					}))
38
					}))
37
				}
39
				}
38
				
40
 
Línea 39... Línea 41...
39
				action && dispatch(action())
41
				action && dispatch(action())
40
				onComplete && onComplete()
42
				onComplete && onComplete()
41
 
43
 
42
				closeModal()
44
				closeModal()
43
				
45
 
44
				dispatch(addNotification({
46
				dispatch(addNotification({
45
					style: 'success',
47
					style: 'success',