From f2e1b783b7bae8fb93ff9fb024d7e830fd04cc8a Mon Sep 17 00:00:00 2001 From: Gabriel Viganotti Date: Tue, 10 Dec 2024 17:48:31 -0300 Subject: [PATCH] feat: show nodes with a different background color when inactive --- src/node_actions.rs | 3 ++- src/nodes_list_view.rs | 22 +++++++++++++++------- style/tailwind.css | 24 ++++++++++++++++++++---- 3 files changed, 37 insertions(+), 12 deletions(-) diff --git a/src/node_actions.rs b/src/node_actions.rs index 42bea1b..c978dcb 100644 --- a/src/node_actions.rs +++ b/src/node_actions.rs @@ -124,7 +124,7 @@ pub fn NodesActionsView() -> impl IntoView { context .selecting_nodes .update(|(_, executing, _)| *executing = true); - let selected = context.selecting_nodes.get_untracked().2; + let selected = &context.selecting_nodes.read_untracked().2; let nodes = context .nodes .read_untracked() @@ -178,6 +178,7 @@ pub fn NodesActionsView() -> impl IntoView {