Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7248 Rev 7249
Línea 67... Línea 67...
67
    })
67
    })
68
  }
68
  }
Línea 69... Línea 69...
69
 
69
 
70
  useEffect(() => {
70
  useEffect(() => {
71
    if (url_leave) {
71
    if (url_leave) {
72
      options.current.push({
72
      options.current.concat({
73
        url: url_leave,
73
        url: url_leave,
74
        label: 'Dejar Grupo',
74
        label: 'Dejar Grupo',
75
        action: () => {
75
        action: () => {
76
          toggleConfirmModal()
76
          toggleConfirmModal()
77
          actionUrl.current = url_leave
77
          actionUrl.current = url_leave
78
        },
78
        },
79
      })
79
      })
80
    }
80
    }
81
    if (url_delete) {
81
    if (url_delete) {
82
      options.current.push({
82
      options.current.concat({
83
        url: url_delete,
83
        url: url_delete,
84
        label: 'Eliminar Grupo',
84
        label: 'Eliminar Grupo',
85
        action: () => {
85
        action: () => {
86
          toggleConfirmModal()
86
          toggleConfirmModal()
87
          actionUrl.current = url_delete
87
          actionUrl.current = url_delete
88
        },
88
        },
89
      })
89
      })
90
    }
90
    }
91
    if (url_get_contact_group_list) {
91
    if (url_get_contact_group_list) {
92
      options.current.push({
92
      options.current.concat({
93
        url: url_get_contact_group_list,
93
        url: url_get_contact_group_list,
94
        label: 'Integrantes',
94
        label: 'Integrantes',
95
        action: () => changeTab(CHAT_TABS.GROUP_MEMBERS),
95
        action: () => changeTab(CHAT_TABS.GROUP_MEMBERS),
96
      })
96
      })
97
    }
97
    }
98
    if (url_add_user_to_group) {
98
    if (url_add_user_to_group) {
99
      options.current.push({
99
      options.current.concat({
100
        url: url_add_user_to_group,
100
        url: url_add_user_to_group,
101
        label: 'Agregar Contactos',
101
        label: 'Agregar Contactos',
102
        action: () => changeTab(CHAT_TABS.ADD_GROUP_MEMBER),
102
        action: () => changeTab(CHAT_TABS.ADD_GROUP_MEMBER),
103
      })
103
      })
104
    }
104
    }
105
    if (url_zoom) {
105
    if (url_zoom) {
106
      options.current.push({
106
      options.current.concat({
107
        url: url_zoom,
107
        url: url_zoom,
108
        label: 'Crear Conferencia',
108
        label: 'Crear Conferencia',
109
        action: toggleConferenceModal,
109
        action: toggleConferenceModal,
110
      })
110
      })
111
    }
111
    }
Línea 112... Línea 112...
112
  }, [entity])
112
  }, [entity])
113
 
113
 
114
  useEffect(() => {
114
  useEffect(() => {
-
 
115
    if (not_seen_messages) axios.post(url_mark_seen)
115
    if (not_seen_messages) axios.post(url_mark_seen)
116
    if (not_received_messages) axios.post(url_mark_received)
116
    if (not_received_messages) axios.post(url_mark_received)
117
    if (options.current.length) options.current = []
Línea 117... Línea 118...
117
    reset()
118
    reset()
118
  }, [entity])
119
  }, [entity])