[fix](trx-frontend-http): release scheduler after entry step
Automatically return control to the scheduler after using the Previous or Next entry controls so manual stepping does not leave the session latched in takeover mode. Verification: node --check src/trx-client/trx-frontend/trx-frontend-http/assets/web/plugins/scheduler.js Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -523,10 +523,16 @@
|
|||||||
})
|
})
|
||||||
.then(function (status) {
|
.then(function (status) {
|
||||||
currentSchedulerStatus = status || null;
|
currentSchedulerStatus = status || null;
|
||||||
renderStatus(status);
|
return Promise.resolve(
|
||||||
renderSchedulerInterleaveStatus();
|
typeof vchanToggleSchedulerRelease === "function"
|
||||||
showSchedulerToast("Selected " + schedulerEntryDisplayName(target) + ".");
|
? vchanToggleSchedulerRelease()
|
||||||
pollStatus();
|
: null
|
||||||
|
).then(function () {
|
||||||
|
renderStatus(status);
|
||||||
|
renderSchedulerInterleaveStatus();
|
||||||
|
showSchedulerToast("Selected " + schedulerEntryDisplayName(target) + ".");
|
||||||
|
pollStatus();
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.catch(function (e) {
|
.catch(function (e) {
|
||||||
console.error("scheduler entry selection failed", e);
|
console.error("scheduler entry selection failed", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user