Compose saved Scenario authoring with current Text and input authority

This commit is contained in:
2026-09-23 00:25:20 -07:00
parent 5960563b23
commit 6f4dfc67b3
78 changed files with 14097 additions and 318 deletions
+30 -12
View File
@@ -391,11 +391,24 @@ fn modal_width<'a>(
.into()
}
fn diagram(app: &App) -> View<'_, Message> {
if app
.active_diagram
.and_then(|id| app.project().diagrams.get(&id))
.is_some_and(|d| d.projection.scenario().is_some())
{
return heading(
"Saved Scenario view",
crate::app::SAVED_SCENARIO_UNAVAILABLE,
);
}
let mut diagrams = app
.project()
.diagrams
.values()
.filter(|d| d.layer == app.layer || d.projection == ProjectionKind::Traceability)
.filter(|d| {
d.projection.scenario().is_none()
&& (d.layer == app.layer || d.projection == ProjectionKind::Traceability)
})
.map(|d| Choice {
id: d.id,
label: d.name.clone(),
@@ -865,22 +878,27 @@ fn inspector(app: &App) -> View<'_, Message> {
);
}
}
body = body.push(
row![
button(text("Apply changes").size(12))
.padding([9, 12])
.on_press(Message::Apply)
.width(Fill),
action("Revert", Message::RevertProperties)
]
.spacing(5),
);
let actions = row![
button(text("Apply changes").size(12))
.padding([9, 12])
.on_press(Message::Apply)
.width(Fill),
action("Revert", Message::RevertProperties)
]
.spacing(5);
if let Some(d) = &app.draft {
body = body.push(forms::view(d, p));
}
container(
column![
tabs,
column![
tabs,
container(actions).padding(iced::Padding {
right: 14.,
..Default::default()
})
]
.spacing(12),
scrollable(body.padding(iced::Padding {
right: 14.,
..Default::default()