HARDEST COMMIT IN THE RECENT TIMES we fixed movement in the admin page

This commit is contained in:
filipriec
2025-08-28 13:43:17 +02:00
parent e142f56706
commit 6e221ef8c1
4 changed files with 11 additions and 55 deletions

View File

@@ -353,6 +353,9 @@ pub async fn run_ui() -> Result<()> {
AppView::Login => router.navigate(Page::Login(login_state.clone())),
AppView::Register => router.navigate(Page::Register(register_state.clone())),
AppView::Admin => {
if let Page::Admin(current) = &router.current {
admin_state = current.clone();
}
info!("Active view is Admin, refreshing profile tree...");
match grpc_client.get_profile_tree().await {
Ok(refreshed_tree) => {