Fix: Gmail SMTP guidance, registration form field, and conditional admin auto-refresh
This commit is contained in:
@@ -229,10 +229,18 @@
|
||||
document.getElementById('sidebar').classList.toggle('show');
|
||||
});
|
||||
|
||||
// Auto-refresh stats every 30 seconds
|
||||
setTimeout(function() {
|
||||
location.reload();
|
||||
}, 30000);
|
||||
// Conditional auto-refresh logic
|
||||
{% if request.endpoint == 'admin.mail_settings' %}
|
||||
{% if settings and settings.enabled %}
|
||||
setTimeout(function() {
|
||||
location.reload();
|
||||
}, 30000);
|
||||
{% endif %}
|
||||
{% else %}
|
||||
setTimeout(function() {
|
||||
location.reload();
|
||||
}, 30000);
|
||||
{% endif %}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user