buffer bug fixed, now proper names are being displayed
This commit is contained in:
@@ -445,9 +445,12 @@ pub async fn run_ui() -> Result<()> {
|
||||
AppView::AddTable => router.navigate(Page::AddTable(admin_state.add_table_state.clone())),
|
||||
AppView::AddLogic => router.navigate(Page::AddLogic(admin_state.add_logic_state.clone())),
|
||||
AppView::Form(path) => {
|
||||
// Router now carries the path; just navigate with it
|
||||
// Keep current_view_* consistent with the active buffer path
|
||||
if let Some((profile, table)) = path.split_once('/') {
|
||||
app_state.set_current_view_table(profile.to_string(), table.to_string());
|
||||
app_state.set_current_view_table(
|
||||
profile.to_string(),
|
||||
table.to_string(),
|
||||
);
|
||||
}
|
||||
router.navigate(Page::Form(path.clone()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user