Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 29 Rev 30
Línea 155... Línea 155...
155
  //   });
155
  //   });
156
  //   onRead(index);
156
  //   onRead(index);
157
  // };
157
  // };
Línea 158... Línea 158...
158
 
158
 
-
 
159
  const handleGetMessages = async () => {
-
 
160
    if(window.location.pathname === '/group/my-groups'){
-
 
161
      try {
-
 
162
        document.getElementsByClassName('.sc-jSgupP')[0].style.display='none';
-
 
163
        
-
 
164
      } catch (error) {
-
 
165
        console.log('>>: error > ', error)
-
 
166
      }
-
 
167
 
-
 
168
      // document.querySelectorAll(".sc-jSgupP").forEach(el => {
-
 
169
      //   console.log('>>: el > ', el)
-
 
170
      //   if(el.parentNode && el.parentNode.removeChild)
-
 
171
      //     el.parentNode.removeChild(el);
-
 
172
      // });
159
  const handleGetMessages = async () => {
173
    }
160
    const response = await axios.get(url_get_all_messages);
174
    const response = await axios.get(url_get_all_messages);
161
    const resData = response.data;
175
    const resData = response.data;
162
    if (!resData.success) {
176
    if (!resData.success) {
163
      return  ("ha ocurrido un error", resData);
177
      return  ("ha ocurrido un error", resData);
Línea 333... Línea 347...
333
      clearInterval(getMessageInterval);
347
      clearInterval(getMessageInterval);
334
    }
348
    }
335
    return () => {
349
    return () => {
336
      clearInterval(getMessageInterval);
350
      clearInterval(getMessageInterval);
337
    };
351
    };
338
  });
-
 
339
 
-
 
340
  // on Maximize
-
 
341
  useEffect(() => {
-
 
342
    if(window.location.pathname === '/group/my-groups'){
-
 
343
      document.getElementsByClassName('.sc-jSgupP')[0].style.display='none';
-
 
344
 
-
 
345
      // document.querySelectorAll(".sc-jSgupP").forEach(el => {
-
 
346
      //   console.log('>>: el > ', el)
-
 
347
      //   if(el.parentNode && el.parentNode.removeChild)
-
 
348
      //     el.parentNode.removeChild(el);
-
 
349
      // });
-
 
350
    }
-
 
351
  }, []);
352
  }, []);
Línea 352... Línea 353...
352
 
353
 
353
  const handleConfirmModalShow = () => {
354
  const handleConfirmModalShow = () => {
354
    setConfirmModalShow(!confirmModalShow);
355
    setConfirmModalShow(!confirmModalShow);