refactor: remove app_data param from generate_lock()

insert data into FrameData instead
This commit is contained in:
Jack Wills
2024-12-03 20:42:24 +00:00
parent 1b26997d25
commit 1a8dab654a
4 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -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
View File
@@ -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 {