Skip to content

Commit

Permalink
show dangling images
Browse files Browse the repository at this point in the history
  • Loading branch information
somnek committed Oct 29, 2024
1 parent f5fe5f8 commit 10d6846
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,13 @@ func getImages() []Image {
var name string
if len(tags) > 0 {
name = tags[0]
c := Image{name: name, id: c.ID}
images = append(images, c)
} else {
// dangling image
name = "<none>"
}
c := Image{name: name, id: c.ID}
images = append(images, c)

}
return images
}
Expand Down
6 changes: 3 additions & 3 deletions keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ var keys = keyMap{
),
Page1: key.NewBinding(
key.WithKeys("1"),
key.WithHelp("1", "Containers Page"),
key.WithHelp("1", "containers"),
),
Page2: key.NewBinding(
key.WithKeys("2"),
key.WithHelp("2", "Images Page"),
key.WithHelp("2", "images"),
),
Page3: key.NewBinding(
key.WithKeys("3"),
key.WithHelp("3", "Volumes Page"),
key.WithHelp("3", "volumes"),
),
Toggle: key.NewBinding(
key.WithKeys(" ", "enter"),
Expand Down

0 comments on commit 10d6846

Please sign in to comment.