Skip to content

Commit

Permalink
show source correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kla committed Dec 4, 2024
1 parent b04657a commit cc48499
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ function row(app: App, container: Container, options: { fields?: string[], full?
const slice = app.containers.length > 1 && options.full ? app.containers.length : 1

if (app.containers.length > 1 && options.full)
items.push([ icons[app.state], app.name, '', '', '', '', container.source ])
items.push([ icons[app.state], app.name, '', '', '', '', source ])

app.containers.slice(0, slice).forEach((container) => {
app.containers.slice(0, slice).forEach((container, index) => {
items.push([
icons[container.state] || icons.unknown,
name(app, container, options),
container.state,
container.uptime?.replace(' ago', ''),
container.forwardedPorts.join(', '),
container.ipAddresses.join(', '),
app.containers.length == 1 ? source : '',
app.containers.length == 1 || !options.full ? source : '',
])
})
return items
Expand Down

0 comments on commit cc48499

Please sign in to comment.