Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5464 Rev 7236
Línea 10... Línea 10...
10
const ICON_OPTIONS = [
10
const ICON_OPTIONS = [
11
  <img src="/images/icons/home.png" className="img-icon lg" />,
11
  <img src="/images/icons/home.png" className="img-icon lg" />,
12
  <img src="/images/icons/conecctions.png" className="img-icon lg" />,
12
  <img src="/images/icons/conecctions.png" className="img-icon lg" />,
13
  <img src="/images/icons/company.png" className="img-icon lg" />,
13
  <img src="/images/icons/company.png" className="img-icon lg" />,
14
  <img src="/images/icons/groups.png" className="img-icon lg" />,
14
  <img src="/images/icons/groups.png" className="img-icon lg" />,
15
  <HiOutlineTag />
15
  <HiOutlineTag />,
16
]
16
]
Línea 17... Línea 17...
17
 
17
 
Línea 18... Línea 18...
18
const ADD_OPTIONS = [<i className="fa fa-calendar img-icon lg" />]
18
const ADD_OPTIONS = [<i className="fa fa-calendar img-icon lg" />]
Línea 97... Línea 97...
97
        }
97
        }
98
      })
98
      })
99
      .catch((err) => {
99
      .catch((err) => {
100
        addNotification({
100
        addNotification({
101
          style: 'error',
101
          style: 'error',
102
          msg: 'Disculpe, ha ocurrido un error buscando notificaciones'
102
          msg: 'Disculpe, ha ocurrido un error buscando notificaciones',
103
        })
103
        })
104
        console.log('>>: err > ', err)
104
        console.log('>>: err > ', err)
105
      })
105
      })
106
  }
106
  }
Línea 204... Línea 204...
204
              ))}
204
              ))}
205
              <li>
205
              <li>
206
                <a href="/notifications">
206
                <a href="/notifications">
207
                  <img src="/images/icons/bell.png" className="img-icon lg" />
207
                  <img src="/images/icons/bell.png" className="img-icon lg" />
208
                  <p>Notificaciones</p>
208
                  <p>Notificaciones</p>
-
 
209
                  <span
-
 
210
                    className={`badge ${
209
                  <span className={`badge ${notificationsCount ? 'd-block' : 'd-none'}`}>
211
                      notificationsCount ? 'd-block' : 'd-none'
-
 
212
                    }`}
-
 
213
                  >
210
                    {notificationsCount}
214
                    {notificationsCount}
211
                  </span>
215
                  </span>
212
                </a>
216
                </a>
213
                {!!notifications.length && (
217
                {!!notifications.length && (
214
                  <nav className="navigation-level_three">
218
                  <nav className="navigation-level_three">
Línea 219... Línea 223...
219
                            <div className="d-flex flex-column">
223
                            <div className="d-flex flex-column">
220
                              <a
224
                              <a
221
                                href={element.link}
225
                                href={element.link}
222
                                onClick={(e) => {
226
                                onClick={(e) => {
223
                                  e.preventDefault()
227
                                  e.preventDefault()
-
 
228
                                  readNotification(
224
                                  readNotification(element.link_mark_read, element.link)
229
                                    element.link_mark_read,
-
 
230
                                    element.link
-
 
231
                                  )
225
                                }}
232
                                }}
226
                              >
233
                              >
227
                                {element.message}
234
                                {element.message}
228
                              </a>
235
                              </a>
229
                              <small style={{ fontSize: '.85rem' }}>
236
                              <small style={{ fontSize: '.85rem' }}>
230
                                {element.time_elapsed}
237
                                {element.time_elapsed}
231
                              </small>
238
                              </small>
232
                            </div>
239
                            </div>
233
                            <i
240
                            <i
234
                              className="ml-3 fa fa-trash-o cursor-pointer"
241
                              className="ml-3 fa fa-trash-o cursor-pointer"
-
 
242
                              onClick={() =>
235
                              onClick={() => deleteNotification(element.link_delete)}
243
                                deleteNotification(element.link_delete)
-
 
244
                              }
236
                            />
245
                            />
237
                          </li>
246
                          </li>
238
                        )
247
                        )
239
                      })}
248
                      })}
240
                    </ul>
249
                    </ul>
Línea 248... Línea 257...
248
    </ul>
257
    </ul>
249
  )
258
  )
250
}
259
}
Línea 251... Línea 260...
251
 
260
 
252
const mapDispatchToProps = {
261
const mapDispatchToProps = {
253
  addNotification: (notification) => addNotification(notification)
262
  addNotification: (notification) => addNotification(notification),
Línea 254... Línea 263...
254
}
263
}