add_table dialog is now working properly well
This commit is contained in:
@@ -13,6 +13,7 @@ use ratatui::{
|
||||
Frame,
|
||||
};
|
||||
use crate::components::handlers::canvas::render_canvas;
|
||||
use crate::components::common::dialog;
|
||||
|
||||
/// Renders the Add New Table page layout, structuring the display of table information,
|
||||
/// input fields, and action buttons. Adapts layout based on terminal width.
|
||||
@@ -482,4 +483,18 @@ pub fn render_add_table(
|
||||
)),
|
||||
);
|
||||
f.render_widget(cancel_button, bottom_button_chunks[2]);
|
||||
|
||||
// --- DIALOG ---
|
||||
// Render the dialog overlay if it's active
|
||||
if _app_state.ui.dialog.dialog_show { // Use the passed-in app_state
|
||||
dialog::render_dialog(
|
||||
f,
|
||||
f.area(), // Render over the whole frame area
|
||||
theme,
|
||||
&_app_state.ui.dialog.dialog_title,
|
||||
&_app_state.ui.dialog.dialog_message,
|
||||
&_app_state.ui.dialog.dialog_buttons,
|
||||
_app_state.ui.dialog.dialog_active_button_index,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user