forked from 1b-agent/fieldcraft-upstream
ui: Suppress/Unsuppress on datums and partitions, greyed in the browser (#291)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
1 parent
5189554a6a
commit
84f42f6f8a
5 files changed
+71
-7
No files matched your search
@@ -384,6 +384,8 @@ pub fn handle(app: &mut ModelApp, ctx: &egui::Context, req: &ControlRequest) ->
|
||||
let action = match (s("action"), s("step")) {
|
||||
(Some("edit"), _) => crate::menu::Action::Edit,
|
||||
(Some("rename"), _) => crate::menu::Action::Rename,
|
||||
(Some("suppress"), _) => crate::menu::Action::Suppress(true),
|
||||
(Some("unsuppress"), _) => crate::menu::Action::Suppress(false),
|
||||
(Some("hide"), _) => crate::menu::Action::Hide,
|
||||
(Some("show"), _) => crate::menu::Action::Show,
|
||||
(Some("isolate"), _) => crate::menu::Action::Isolate,
|
||||
@@ -393,7 +395,9 @@ pub fn handle(app: &mut ModelApp, ctx: &egui::Context, req: &ControlRequest) ->
|
||||
crate::menu::Action::Active { step: step.to_string(), active: a == "activate" }
|
||||
}
|
||||
(a, _) => {
|
||||
return err(format!("`action` {a:?}: edit, rename, hide, show, isolate, show_all, delete, or activate/deactivate with `step`"));
|
||||
return err(format!(
|
||||
"`action` {a:?}: edit, rename, suppress, unsuppress, hide, show, isolate, show_all, delete, or activate/deactivate with `step`"
|
||||
));
|
||||
}
|
||||
};
|
||||
crate::menu::apply(app, target, action);
|
||||
|
||||
Reference in new issue
Block a user