mirror of
https://github.com/open-webui/open-webui.git
synced 2025-04-11 13:29:41 +02:00
debug: Add detailed logging for Google Drive Integration state changes
This commit is contained in:
parent
6f3e7ed0e9
commit
c7cec2131c
@ -251,6 +251,11 @@
|
||||
|
||||
enableGoogleDriveIntegration = res.enable_google_drive_integration;
|
||||
console.log('Google Drive Integration onMount:', enableGoogleDriveIntegration);
|
||||
if (enableGoogleDriveIntegration === undefined) {
|
||||
console.error('enableGoogleDriveIntegration is undefined onMount');
|
||||
} else {
|
||||
console.log('Google Drive Integration onMount:', enableGoogleDriveIntegration);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@ -598,7 +603,11 @@
|
||||
<div class="flex justify-between items-center text-xs">
|
||||
<div class="text-xs font-medium">{$i18n.t('Enable Google Drive')}</div>
|
||||
<div>
|
||||
<Switch bind:state={enableGoogleDriveIntegration} on:change={() => console.log('Google Drive Integration:', enableGoogleDriveIntegration)} />
|
||||
<Switch bind:state={enableGoogleDriveIntegration} on:change={() => {
|
||||
console.log('Google Drive Integration before change:', enableGoogleDriveIntegration);
|
||||
enableGoogleDriveIntegration = !enableGoogleDriveIntegration;
|
||||
console.log('Google Drive Integration after change:', enableGoogleDriveIntegration);
|
||||
}} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user