Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3752 Rev 3788
Línea 209... Línea 209...
209
    });
209
    });
210
  };
210
  };
Línea 211... Línea 211...
211
 
211
 
212
  const handleConfirmModalAction = async () => {
212
  const handleConfirmModalAction = async () => {
213
    try {
213
    try {
214
      const { data } = axios.post(modalActionUrl.current)
214
      const { data } = await axios.post(modalActionUrl.current)
-
 
215
      if (!data.success) console.log('Error in confirm modal action')
215
      if (!data.success) console.log('Error in confirm modal action')
216
      handleConfirmModalShow()
-
 
217
      onClose(entity);
216
      return onClose(entity);
218
      return
217
    } catch (error) {
219
    } catch (error) {
218
      console.log(error)
220
      console.log(error)
219
    }
221
    }
Línea 311... Línea 313...
311
    return () => {
313
    return () => {
312
      clearTimeout(timer);
314
      clearTimeout(timer);
313
    };
315
    };
314
  }, [minimized, loading]);
316
  }, [minimized, loading]);
Línea 315... Línea -...
315
 
-
 
316
  const handleConfirmModalShow = () => {
317
 
317
    setConfirmModalShow(!confirmModalShow);
-
 
Línea 318... Línea 318...
318
  };
318
  const handleConfirmModalShow = () => setConfirmModalShow(!confirmModalShow)
319
 
-
 
320
  const handleConfirmModalAccept = () => {
-
 
Línea 321... Línea 319...
321
    handleConfirmModalAction();
319
 
322
  };
320
  const handleConfirmModalAccept = () => handleConfirmModalAction()
323
 
321