Просмотр исходного кода

Fixed timer issue in debug log collection

maziggy 4 месяцев назад
Родитель
Сommit
6794846ac0
3 измененных файлов с 4 добавлено и 3 удалено
  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 () => {
   const handleToggleDebugLogging = async () => {
     setDebugToggling(true);
     setDebugToggling(true);
     try {
     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) {
     } catch (err) {
       console.error('Failed to toggle debug logging:', err);
       console.error('Failed to toggle debug logging:', err);
     } finally {
     } finally {

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
static/assets/index-CCnKMi2S.js


+ 1 - 1
static/index.html

@@ -23,7 +23,7 @@
 
 
     <!-- Splash screens for iOS -->
     <!-- Splash screens for iOS -->
     <link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
     <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">
     <link rel="stylesheet" crossorigin href="/assets/index-CrUIX1oi.css">
   </head>
   </head>
   <body>
   <body>

Некоторые файлы не были показаны из-за большого количества измененных файлов