Explorar el Código

Fixed timer issue in debug log collection

maziggy hace 8 meses
padre
commit
6794846ac0
Se han modificado 3 ficheros con 4 adiciones y 3 borrados
  1. 3 2
      frontend/src/pages/SystemInfoPage.tsx
  2. 0 0
      static/assets/index-CCnKMi2S.js
  3. 1 1
      static/index.html

+ 3 - 2
frontend/src/pages/SystemInfoPage.tsx

@@ -105,8 +105,9 @@ export function SystemInfoPage() {
   const handleToggleDebugLogging = async () => {
     setDebugToggling(true);
     try {
-      await supportApi.setDebugLogging(!debugLoggingState?.enabled);
-      queryClient.invalidateQueries({ queryKey: ['debugLogging'] });
+      const newState = await supportApi.setDebugLogging(!debugLoggingState?.enabled);
+      // Immediately update the cache with the new state (includes fresh enabled_at timestamp)
+      queryClient.setQueryData(['debugLogging'], newState);
     } catch (err) {
       console.error('Failed to toggle debug logging:', err);
     } finally {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
static/assets/index-CCnKMi2S.js


+ 1 - 1
static/index.html

@@ -23,7 +23,7 @@
 
     <!-- Splash screens for iOS -->
     <link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
-    <script type="module" crossorigin src="/assets/index-BXGONv-e.js"></script>
+    <script type="module" crossorigin src="/assets/index-CCnKMi2S.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-CrUIX1oi.css">
   </head>
   <body>

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio