ui: hook up relay management view

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-16 17:09:32 -07:00
parent fce82b2b6d
commit 945ccde818
3 changed files with 15 additions and 2 deletions

View File

@@ -101,7 +101,14 @@ impl<'a> DesktopSidePanel<'a> {
router.route_to(Route::accounts());
}
}
SidePanelAction::Settings => {} // TODO
SidePanelAction::Settings => {
if router.routes().iter().any(|&r| r == Route::Relays) {
// return if we are already routing to accounts
router.go_back();
} else {
router.route_to(Route::relays());
}
}
SidePanelAction::Columns => (), // TODO
}
}