diff --git a/code/src/app.rs b/code/src/app.rs index 17af2a8..9a5112a 100644 --- a/code/src/app.rs +++ b/code/src/app.rs @@ -109,6 +109,7 @@ struct MainTabViewer { material_tabs: MaterialTabViewer, material_tree: egui_dock::DockState, rt: tokio::runtime::Runtime, + equipment_modal_state: ModalWinState, is_dark_theme: bool, interface_scale_ratio: f32, } @@ -296,6 +297,18 @@ struct WorkerTabViewer { edit_worker_is_fired: bool, edit_worker_position: Position, + equipment_modal_state: ModalWinState { + is_open: false, + can_finish: false, + data: HashMap::from([ + ("id".to_owned(), String::new()), + ("inv_number".to_owned(), String::new()), + ("maintenance_date".to_owned(), String::new()), + ("worker_id".to_owned(), String::new()), + ]), + status: ModalStatus::Add + }, + rt: tokio::runtime::Runtime, show_position_delete_modal: bool, delete_position: Position, @@ -1307,4 +1320,4 @@ impl egui_dock::TabViewer for RecipeTabViewer { } } } -} +} \ No newline at end of file