wip: logs broken

This commit is contained in:
Jack Wills
2022-07-22 21:23:09 +00:00
parent db7aa8dceb
commit 8cdfa2d6be
3 changed files with 13 additions and 26 deletions
+3 -17
View File
@@ -86,24 +86,10 @@ impl AppData {
init: false,
logs_parsed: false,
show_error: false,
sorted_by: None,
sorted_by: Some((Header::State, SortedOrder::Asc))
}
}
// fn heading_click(&self) {
// if let Some(data) = self
// .heading_map
// .iter()
// .filter(|i| i.1.intersects(rect))
// .collect::<Vec<_>>()
// .get(0)
// {
// // self.selected_panel = *data.0;
// }
// }
// Current time as unix timestamp
fn get_systemtime(&self) -> u64 {
SystemTime::now()
@@ -199,11 +185,11 @@ impl AppData {
SortedOrder::Asc => self
.containers
.items
.sort_by(|a, b| a.state.as_text().cmp(b.state.as_text())),
.sort_by(|a, b| a.state.order().cmp(b.state.order())),
SortedOrder::Desc => self
.containers
.items
.sort_by(|a, b| b.state.as_text().cmp(a.state.as_text())),
.sort_by(|a, b| b.state.order().cmp(a.state.order())),
},
Header::Status => match so {
SortedOrder::Asc => self