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:
@@ -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 } =
|
||||
|
||||
Reference in New Issue
Block a user