updates
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user