From 502ed415f0484e703da825c0bd0ec108781c6e13 Mon Sep 17 00:00:00 2001 From: Gabriel Viganotti Date: Sun, 15 Dec 2024 17:38:18 -0300 Subject: [PATCH] feat: disable manage actions when there is one in progress --- src/node_actions.rs | 73 +++++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/src/node_actions.rs b/src/node_actions.rs index 015f626..02e2132 100644 --- a/src/node_actions.rs +++ b/src/node_actions.rs @@ -106,6 +106,7 @@ impl NodeAction { pub fn NodesActionsView() -> impl IntoView { let context = expect_context::(); let is_selecting_nodes = move || context.selecting_nodes.read().0; + let is_selection_executing = move || context.selecting_nodes.read().1; let show_actions_menu = RwSignal::new(false); // signal to toggle the panel to add nodes @@ -121,38 +122,7 @@ pub fn NodesActionsView() -> impl IntoView { } }> - - + + +