Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5606 Rev 5617
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)
-
 
129
      .then(({ data: response }) => {
127
    axios.post(selectedConversation.delete_link).then(({ data: response }) => {
Línea 130... Línea 128...
130
        const { success, data } = response
128
      const { success, data } = response
131
 
129
 
132
        if (!success) {
130
      if (!success) {
133
          dispatch(addNotification({ style: 'danger', msg: data }))
131
        dispatch(addNotification({ style: 'danger', msg: data }))
Línea 134... Línea 132...
134
          return
132
        return
135
        }
133
      }
136
 
134
 
137
        dispatch(addNotification({ style: 'success', msg: data }))
135
      dispatch(addNotification({ style: 'success', msg: data }))
Línea 138... Línea 136...
138
        setConversation(null)
136
      setConversation(null)
139
      })
137
    })
140
  }
138
  }