Bind confirmed bank and ticket actions to real careers (by Codex)

This commit is contained in:
Codex committed 2026-10-28 11:04:11 +01:00
1 parent f75e0f8e49
commit dcf42f2da7
23 files changed
+535 -56

No files matched your search

+8 -1
View File
@@ -21,6 +21,12 @@ class TicketPopover final : public Rml::EventListener {
public:
TicketPopover(Rml::Context &, Rml::ElementDocument &, DataSource &,
std::function<void()> on_commit);
// submit accepts a confirmed proposal; async owners publish only the later
// authoritative response. The control never changes the displayed account.
TicketPopover(Rml::Context &, Rml::ElementDocument &,
std::function<Snapshot()> read,
std::function<ActionResult(const Action &)> submit,
std::function<void()> on_commit);
~TicketPopover() override;
TicketPopover(const TicketPopover &) = delete;
TicketPopover &operator=(const TicketPopover &) = delete;
@@ -43,7 +49,8 @@ private:
Rml::Context &context_;
Rml::ElementDocument &document_;
DataSource &source_;
std::function<Snapshot()> read_;
std::function<ActionResult(const Action &)> submit_;
std::function<void()> on_commit_;
Rml::Element *layer_ = nullptr;
std::string anchor_id_, error_;