Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 5 Rev 655
Línea 20... Línea 20...
20
 
20
 
21
        if (!success) {
21
        if (!success) {
22
          dispatch(
22
          dispatch(
23
            addNotification({
23
            addNotification({
24
              style: 'danger',
24
              style: 'danger',
25
              msg: 'Error interno. Por favor, intente más tarde.',
25
              msg: 'Error interno. Por favor, intente más tarde.'
26
            })
26
            })
27
          )
27
          )
28
          return
28
          return
Línea 29... Línea 29...
29
        }
29
        }
30
 
30
 
31
        window.open(data, '_blank')
31
        window.open(data, '_blank')
32
      })
-
 
33
      .catch((error) => {
32
      })
34
        dispatch(
-
 
35
          addNotification({ style: 'danger', message: 'Ha ocurrido un error' })
-
 
36
        )
33
      .catch((err) => {
37
        throw new Error(error)
34
        dispatch(addNotification({ style: 'danger', message: err.message }))
Línea 38... Línea 35...
38
      })
35
      })
39
  }
36
  }
40
 
37
 
41
  return (
38
  return (
42
    <Modal show={show} onHide={onClose}>
39
    <Modal show={show} onHide={onClose}>
43
      <Modal.Header className="pb-0" closeButton>
40
      <Modal.Header className='pb-0' closeButton>
44
        <Modal.Title>{event?.title}</Modal.Title>
41
        <Modal.Title>{event?.title}</Modal.Title>
45
      </Modal.Header>
42
      </Modal.Header>