From 41c2c048a85c0f740906119c619f8a9a66e28c26 Mon Sep 17 00:00:00 2001 From: kernelkind Date: Mon, 16 Jun 2025 17:46:10 -0400 Subject: [PATCH] add overlay to `RouterAction` Signed-off-by: kernelkind --- crates/notedeck_columns/src/nav.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/notedeck_columns/src/nav.rs b/crates/notedeck_columns/src/nav.rs index da13905b..2f1408a7 100644 --- a/crates/notedeck_columns/src/nav.rs +++ b/crates/notedeck_columns/src/nav.rs @@ -253,6 +253,10 @@ pub enum RouterAction { /// chrome atm PfpClicked, RouteTo(Route, RouterType), + Overlay { + route: Route, + make_new: bool, + }, } pub enum RouterType { @@ -289,6 +293,14 @@ impl RouterAction { None } }, + RouterAction::Overlay { route, make_new } => { + if make_new { + stack_router.route_to_overlaid_new(route); + } else { + stack_router.route_to_overlaid(route); + } + None + } } }