This commit is contained in:
2025-06-11 16:50:31 +02:00
parent f9f1bcd34a
commit 85773fc09e
4 changed files with 15 additions and 4 deletions

View File

@@ -639,11 +639,16 @@ onMounted(() => {
signatureConfig.value = JSON.parse(storedSignature);
}
loadEmailThread();
// Load email thread immediately if credentials are available
if (hasEmailCredentials.value) {
loadEmailThread();
}
// Auto-refresh every 30 seconds
const refreshInterval = setInterval(() => {
loadEmailThread();
if (hasEmailCredentials.value) {
loadEmailThread();
}
}, 30000);
// Clean up interval on unmount

View File

@@ -165,6 +165,12 @@ const getSessionId = () => {
};
const testConnection = async () => {
// Prevent multiple simultaneous connection attempts
if (testing.value) {
console.log('[EmailCredentialsSetup] Connection test already in progress, ignoring');
return;
}
const { valid } = await form.value.validate();
if (!valid) return;