Skip to content

Commit

Permalink
Put 'Advertise Relay List' on all the Relay pages (not just Mine)
Browse files Browse the repository at this point in the history
mikedilger committed Jan 7, 2025
1 parent 076ec8c commit 9fd07b1
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions gossip-bin/src/ui/relays/mod.rs
Original file line number Diff line number Diff line change
@@ -465,19 +465,17 @@ pub(super) fn configure_list_btn(app: &mut GossipUi, ui: &mut Ui) {
}),
)));

if app.page == Page::RelaysMine {
items.push(MoreMenuItem::Button(MoreMenuButton::new("Advertise Relay List",
Box::new(|_ui, _app| {
let _ = GLOBALS
.to_overlord
.send(ToOverlordMessage::AdvertiseRelayList);

}))
.enabled(GLOBALS.identity.is_unlocked())
.on_disabled_hover_text("Add or unlock your private key to advertise your relays")
.on_hover_text("Advertise my relays. Will send your relay usage information to every relay that seems to be working well so that other people know how to follow and contact you.")
));
}
items.push(MoreMenuItem::Button(MoreMenuButton::new("Advertise Relay List",
Box::new(|_ui, _app| {
let _ = GLOBALS
.to_overlord
.send(ToOverlordMessage::AdvertiseRelayList);

}))
.enabled(GLOBALS.identity.is_unlocked())
.on_disabled_hover_text("Add or unlock your private key to advertise your relays")
.on_hover_text("Advertise my relays. Will send your relay usage information to every relay that seems to be working well so that other people know how to follow and contact you.")
));

menu.show_entries(ui, app, response, items);
});

0 comments on commit 9fd07b1

Please sign in to comment.