Toggle the script in the orchestrator you clicked, not the first one that lists it

docker_update.sh runs bare in daily, --weekly in weekly and --remainder in
monthly, so switching it off in monthly disabled the daily run and reported
success.
This commit is contained in:
Gmer4Lfe
2026-08-11 20:08:32 -04:00
parent 2b933c45dd
commit dfe4c0d495
3 changed files with 48 additions and 9 deletions
+5 -1
View File
@@ -1782,7 +1782,11 @@ function vvSaveChild(el) {
}
if (orchOn) {
vvPost('/plugins/varaverk/api/conf_toggle.php', {id, enabled: enabled ? '1' : '0'})
// The array this row was rendered from, so the write lands in the list that was clicked. A
// script may sit in several with different arguments, and without this the endpoint acts on
// whichever one master.conf declares first.
vvPost('/plugins/varaverk/api/conf_toggle.php',
{id, enabled: enabled ? '1' : '0', array: child.dataset.confArray || ''})
.then(d => { if (d.ok) vvFlashSaved(child); });
} else {
const cron = child.querySelector('input.vv-cron')?.value.trim() ?? '';