docs: screenshot
This commit is contained in:
@@ -123,26 +123,6 @@ impl DockerData {
|
||||
}
|
||||
}
|
||||
|
||||
// pub fn sort_containers(i: &mut [ContainerSummary], so: SortedOrder, header: Header) -> &[ContainerSummary] {
|
||||
// match header {
|
||||
// Header::State => {
|
||||
// match so {
|
||||
// SortedOrder::Asc => i.sort_by(|a,b|b.state.cmp(&a.state)),
|
||||
// SortedOrder::Desc => i.sort_by(|a,b|a.state.cmp(&b.state)),
|
||||
// }
|
||||
|
||||
// },
|
||||
// Header::Image => {
|
||||
// match so {
|
||||
// SortedOrder::Asc => i.sort_by(|a,b|b.image.cmp(&a.image)),
|
||||
// SortedOrder::Desc => i.sort_by(|a,b|a.image.cmp(&b.image)),
|
||||
// }
|
||||
// },
|
||||
// _ => ()
|
||||
// }
|
||||
// i
|
||||
// }
|
||||
|
||||
/// Get all current containers, handle into ContainerItem in the app_data struct rather than here
|
||||
/// Just make sure that items sent are guaranteed to have an id
|
||||
/// return Vec<(is_running, id)>
|
||||
@@ -163,9 +143,6 @@ impl DockerData {
|
||||
.filter(|i| i.id.is_some())
|
||||
.for_each(|c| output.push(c.to_owned()));
|
||||
|
||||
// containers.so
|
||||
// let a = Self::sort_containers(&mut output, SortedOrder::Asc, Header::State);
|
||||
|
||||
self.app_data.lock().update_containers(&output);
|
||||
|
||||
let current_sort = self.app_data.lock().get_sorted();
|
||||
|
||||
Reference in New Issue
Block a user