web: attach the attention bell to the Runs runtime

The Runs view is created before the attention view is destructured, so its
toolbar callback was undefined and selecting Runs threw before rendering. Attach
the function after destructuring.
This commit is contained in:
2026-10-20 15:01:25 +01:00
parent 4b20be6ea3
commit 75150c4253
+4
View File
@@ -2386,6 +2386,10 @@ const {
renderAttentionSheet,
onRunAlertFrame,
} = views.attention;
// The Runs view is created before this destructuring; its toolbar calls this
// through the runtime object at render time, so attach it once the function is
// available.
runtime.renderAttentionBell = renderAttentionBell;
const { renderSettingsView, refreshServerUrlError } = views.settings;
const { renderPipelineList, renderPipelineDetail } = views.pipelines;
const { renderTemplateGallery, renderTemplateDetail, loadTemplates, selectTemplate, resetTemplateCreateState, resetTemplateSelection } =