factored out the need for amsterdam_pageTitle by having FrameTitle be a separate bit of metadata in AmContext

This commit is contained in:
2026-02-10 21:10:20 -07:00
parent 09842a91bd
commit f2b8b829aa
18 changed files with 65 additions and 46 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ func (mb *MessageBox) Render(ctxt AmContext) (string, any) {
}
ctxt.SetSession("mbconfirm."+mb.def.Id, nonce)
}
ctxt.VarMap().Set("amsterdam_pageTitle", mb.def.Title)
ctxt.SetFrameTitle(mb.def.Title)
ctxt.VarMap().Set("tone", mb.def.Tone)
ctxt.VarMap().Set("destructive", mb.def.Destructive)
ctxt.VarMap().Set("message", mb.message)