Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5603 Rev 5606
Línea 122... Línea 122...
122
  const toggleConfirmModal = () => {
122
  const toggleConfirmModal = () => {
123
    setIsShowConfirm(!isShowConfirm)
123
    setIsShowConfirm(!isShowConfirm)
124
  }
124
  }
Línea 125... Línea 125...
125
 
125
 
-
 
126
  const deleteConversation = () => {
-
 
127
    axios
126
  const deleteConversation = () => {
128
      .post(selectedConversation.feed_delete_url)
127
    axios.post('/inmail/delete').then(({ data: response }) => {
129
      .then(({ data: response }) => {
Línea 128... Línea 130...
128
      const { success, data } = response
130
        const { success, data } = response
129
 
131
 
130
      if (!success) {
132
        if (!success) {
131
        dispatch(addNotification({ style: 'danger', msg: data }))
133
          dispatch(addNotification({ style: 'danger', msg: data }))
Línea 132... Línea 134...
132
        return
134
          return
-
 
135
        }
133
      }
136
 
134
 
137
        dispatch(addNotification({ style: 'success', msg: data }))
Línea 135... Línea 138...
135
      dispatch(addNotification({ style: 'success', msg: data }))
138
        setConversation(null)
136
    })
139
      })
137
  }
140
  }