refactor: remove app_data param from generate_lock()
insert data into FrameData instead
This commit is contained in:
@@ -125,7 +125,7 @@ impl ContainerPorts {
|
||||
pub fn len_ip(&self) -> usize {
|
||||
self.ip
|
||||
.as_ref()
|
||||
.map_or(0, |i|i.to_string().chars().count())
|
||||
.map_or(0, |i| i.to_string().chars().count())
|
||||
}
|
||||
pub fn len_private(&self) -> usize {
|
||||
format!("{}", self.private).chars().count()
|
||||
|
||||
+1
-1
@@ -407,7 +407,7 @@ impl AppData {
|
||||
}
|
||||
|
||||
/// Get title for containers section, add a suffix indicating if the containers are currently under filter
|
||||
pub fn container_title(&self) -> String {
|
||||
pub fn get_container_title(&self) -> String {
|
||||
let suffix = if !self.hidden_containers.is_empty() && !self.containers.items.is_empty() {
|
||||
" - filtered"
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user