Browse Source

debug: Add console logs for Google Drive Integration state changes

Taylor Wilsdon (aider) 4 months ago
parent
commit
6f3e7ed0e9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/components/admin/Settings/Documents.svelte

+ 2 - 1
src/lib/components/admin/Settings/Documents.svelte

@@ -250,6 +250,7 @@
 			fileMaxCount = res?.file.max_count ?? '';
 			fileMaxCount = res?.file.max_count ?? '';
 
 
 			enableGoogleDriveIntegration = res.enable_google_drive_integration;
 			enableGoogleDriveIntegration = res.enable_google_drive_integration;
+			console.log('Google Drive Integration onMount:', enableGoogleDriveIntegration);
 		}
 		}
 	});
 	});
 </script>
 </script>
@@ -597,7 +598,7 @@
 			<div class="flex justify-between items-center text-xs">
 			<div class="flex justify-between items-center text-xs">
 				<div class="text-xs font-medium">{$i18n.t('Enable Google Drive')}</div>
 				<div class="text-xs font-medium">{$i18n.t('Enable Google Drive')}</div>
 				<div>
 				<div>
-					<Switch bind:state={enableGoogleDriveIntegration} />
+					<Switch bind:state={enableGoogleDriveIntegration} on:change={() => console.log('Google Drive Integration:', enableGoogleDriveIntegration)} />
 				</div>
 				</div>
 			</div>
 			</div>
 		</div>
 		</div>