Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 5 Rev 655
Línea 37... Línea 37...
37
 
37
 
38
        if (!success) {
38
        if (!success) {
39
          dispatch(
39
          dispatch(
40
            addNotification({
40
            addNotification({
41
              style: 'danger',
41
              style: 'danger',
42
              msg: 'Error interno. Por favor, intente más tarde.',
42
              msg: 'Error interno. Por favor, intente más tarde.'
43
            })
43
            })
44
          )
44
          )
45
          return
45
          return
Línea 46... Línea 46...
46
        }
46
        }
47
 
47
 
48
        window.open(data, '_blank')
48
        window.open(data, '_blank')
49
      })
-
 
50
      .catch((error) => {
49
      })
51
        dispatch(
-
 
52
          addNotification({ style: 'danger', message: 'Ha ocurrido un error' })
-
 
53
        )
50
      .catch((err) => {
54
        throw new Error(error)
51
        dispatch(addNotification({ style: 'danger', message: err.message }))
Línea 55... Línea 52...
55
      })
52
      })
56
  }
53
  }
Línea 66... Línea 63...
66
          return
63
          return
67
        }
64
        }
Línea 68... Línea 65...
68
 
65
 
69
        setEventsAndTasks(data)
66
        setEventsAndTasks(data)
70
      })
67
      })
71
      .catch((error) => {
-
 
72
        dispatch(
68
      .catch((err) => {
73
          addNotification({ style: 'danger', message: 'Ha ocurrido un error' })
-
 
74
        )
-
 
75
        throw new Error(error)
69
        dispatch(addNotification({ style: 'danger', message: err.message }))
76
      })
70
      })
Línea 77... Línea 71...
77
  }
71
  }
78
 
72
 
Línea 95... Línea 89...
95
                    e.preventDefault()
89
                    e.preventDefault()
96
                    getBackendVarUrl(event.url)
90
                    getBackendVarUrl(event.url)
97
                  }}
91
                  }}
98
                >
92
                >
99
                  <div
93
                  <div
100
                    className="calendar-event"
94
                    className='calendar-event'
101
                    style={{
95
                    style={{
102
                      color: event.textColor,
96
                      color: event.textColor,
103
                      background: event.backgroundColor,
97
                      background: event.backgroundColor
104
                    }}
98
                    }}
105
                  >
99
                  >
106
                    <h4>
100
                    <h4>
107
                      <b>Evento: </b> {event.title}
101
                      <b>Evento: </b> {event.title}
108
                    </h4>
102
                    </h4>
Línea 120... Línea 114...
120
                </a>
114
                </a>
121
              </li>
115
              </li>
122
            )
116
            )
123
          })
117
          })
124
        ) : (
118
        ) : (
125
          <EmptySection message="No hay eventos disponibles" />
119
          <EmptySection message='No hay eventos disponibles' />
126
        )}
120
        )}
127
      </ul>
121
      </ul>
128
    </StyledContainer>
122
    </StyledContainer>
129
  )
123
  )
130
}
124
}