gui: display aliases on installer final step

This commit is contained in:
jp1ac4 2023-04-17 08:00:31 +01:00
parent 3ac3097294
commit 29185b5096
No known key found for this signature in database
GPG Key ID: A7ACD32423568D7B

View File

@ -937,26 +937,44 @@ pub fn install<'a>(
acc.push(
Row::new()
.spacing(5)
.push(text(hw.0.to_string()).small())
.push_maybe(
context.keys.iter().find_map(|k| {
if k.master_fingerprint == hw.1
{
Some(
text(k.name.clone())
.small()
.bold(),
)
} else {
None
}
}),
)
.push(
text(format!(
"(fingerprint: {})",
hw.1
))
.small(),
),
text(format!("#{}", hw.1)).small(),
)
.push(text(hw.0.to_string()).small()),
)
},
))
})
.push_maybe(context.signer.as_ref().map(|signer| {
Row::new().push(text("This computer").small()).push(
text(format!(
"(fingerprint: {})",
signer.fingerprint()
))
.small(),
)
Row::new()
.spacing(5)
.push_maybe(context.keys.iter().find_map(|k| {
if k.master_fingerprint == signer.fingerprint()
{
Some(text(k.name.clone()).small().bold())
} else {
None
}
}))
.push(
text(format!("#{}", signer.fingerprint()))
.small(),
)
.push(text("This computer").small())
})),
)
.width(Length::Fill),