diff --git a/src/ui/relays/mine.rs b/src/ui/relays/mine.rs index 25400fa06..250ad51b6 100644 --- a/src/ui/relays/mine.rs +++ b/src/ui/relays/mine.rs @@ -13,6 +13,16 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr ui.horizontal_wrapped(|ui| { ui.heading(Page::RelaysMine.name()); ui.set_enabled(!is_editing); + ui.add_space(10.0); + if ui.button("Advertise Relay List") + .on_hover_text("Advertise my relays. Will send 10002 kind to all relays that have 'ADVERTISE' usage enabled") + .clicked() { + let _ = GLOBALS + .to_overlord + .send(ToOverlordMessage::AdvertiseRelayList); + } + ui.add_space(50.0); + widgets::search_filter_field(ui, &mut app.relays.search, 200.0); ui.with_layout(egui::Layout::right_to_left(egui::Align::Min), |ui| { ui.add_space(20.0); super::configure_list_btn(app, ui); @@ -26,14 +36,6 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr }); ui.add_space(10.0); - ui.horizontal(|ui| { - if ui.button("↑ Advertise Relay List ↑").clicked() { - let _ = GLOBALS - .to_overlord - .send(ToOverlordMessage::AdvertiseRelayList); - } - }); - let relays = if !is_editing { // clear edit cache if present if !app.relays.edit_relays.is_empty() {