the profile name is now passed from admin panel to the add table page

This commit is contained in:
filipriec
2025-04-17 21:59:19 +02:00
parent 6f36b84f85
commit 75af0c3be1
2 changed files with 36 additions and 7 deletions

View File

@@ -113,11 +113,11 @@ pub fn render_add_table(
// --- Top Info Rendering (Wide - 2 lines) ---
let profile_text = Paragraph::new(vec![
Line::from(Span::styled(
format!("profile: {}", add_table_state.profile_name),
format!("Profile: {}", add_table_state.profile_name),
theme.fg,
)),
Line::from(Span::styled(
format!("table name: {}", add_table_state.table_name),
format!("Table name: {}", add_table_state.table_name),
theme.fg,
)),
])
@@ -169,14 +169,14 @@ pub fn render_add_table(
.split(top_info_area);
let profile_text = Paragraph::new(Span::styled(
format!("profile: {}", add_table_state.profile_name),
format!("Profile: {}", add_table_state.profile_name),
theme.fg,
))
.alignment(Alignment::Left);
f.render_widget(profile_text, top_info_chunks[0]);
let table_name_text = Paragraph::new(Span::styled(
format!("table: {}", add_table_state.table_name),
format!("Table: {}", add_table_state.table_name),
theme.fg,
))
.alignment(Alignment::Left);