fix(scheduler): save interval change even when auto is disabled
updateSchedulerInterval() only saved when enabled=true, so changing the dropdown with auto off was lost on refresh. Now always persists. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -204,10 +204,7 @@ async function toggleScheduler() {
|
|||||||
|
|
||||||
async function updateSchedulerInterval() {
|
async function updateSchedulerInterval() {
|
||||||
if (_schedulerLoading) return; // ignore programmatic changes during load
|
if (_schedulerLoading) return; // ignore programmatic changes during load
|
||||||
const enabled = document.getElementById('schedulerToggle').checked;
|
await toggleScheduler(); // always save interval (even when disabled)
|
||||||
if (enabled) {
|
|
||||||
await toggleScheduler();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function loadSchedulerStatus() {
|
async function loadSchedulerStatus() {
|
||||||
|
|||||||
@@ -114,5 +114,5 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ request.scope.get('root_path', '') }}/static/js/dashboard.js?v=33"></script>
|
<script src="{{ request.scope.get('root_path', '') }}/static/js/dashboard.js?v=34"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user