ui: show success/failure in relays table

This commit is contained in:
Mike Dilger 2022-12-29 14:23:06 +13:00
parent 488741f235
commit 05b6e91a6e

View File

@ -71,6 +71,8 @@ fn render_relay(ui: &mut Ui, relay: &DbRelay, bold: bool) {
if bold { rt = rt.strong(); } if bold { rt = rt.strong(); }
ui.label(rt); ui.label(rt);
ui.label(&format!("Success={} Failure={}", relay.success_count, relay.failure_count));
ui.with_layout(Layout::right_to_left(Align::Center), |ui| { ui.with_layout(Layout::right_to_left(Align::Center), |ui| {
let mut post = relay.post; // checkbox needs a mutable state variable. let mut post = relay.post; // checkbox needs a mutable state variable.