Close to the ui final version

This commit is contained in:
Marco De Araujo 2025-12-24 14:47:57 -04:00
parent d614ec4d18
commit b130c4550d
9 changed files with 46 additions and 69 deletions

View file

@ -1,4 +1,4 @@
use crate::core::models::{UnifiedData, UnifiedMonitorData};
use crate::core::models::UnifiedData;
use crate::data::heartbeat::model::HeartbeatEntry;
use crate::i18n::t;
@ -96,10 +96,6 @@ impl DashboardViewState {
error_message: None,
}
}
pub fn get_selected_monitor(&self) -> Option<&MonitorViewState> {
self.monitors.get(self.selected_index)
}
}
fn get_status_history(heartbeats: &[HeartbeatEntry]) -> Vec<MonitorStatus> {