diff --git a/src/channels/web/static/app.js b/src/channels/web/static/app.js index fd7b16fa..7fed4157 100644 --- a/src/channels/web/static/app.js +++ b/src/channels/web/static/app.js @@ -3030,7 +3030,11 @@ function renderRoutineDetail(routine) { function triggerRoutine(id) { apiFetch('/api/routines/' + id + '/trigger', { method: 'POST' }) - .then(() => showToast('Routine triggered', 'success')) + .then(() => { + showToast('Routine triggered', 'success'); + if (currentRoutineId === id) openRoutineDetail(id); + else loadRoutines(); + }) .catch((err) => showToast('Trigger failed: ' + err.message, 'error')); }