From cc4849991435b646de836ba48275fe10805af07e Mon Sep 17 00:00:00 2001 From: Kien La Date: Wed, 4 Dec 2024 17:53:03 -0500 Subject: [PATCH] show source correctly --- src/app_list.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app_list.ts b/src/app_list.ts index 5036fd7..de5bf6f 100644 --- a/src/app_list.ts +++ b/src/app_list.ts @@ -22,9 +22,9 @@ 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), @@ -32,7 +32,7 @@ function row(app: App, container: Container, options: { fields?: string[], full? container.uptime?.replace(' ago', ''), container.forwardedPorts.join(', '), container.ipAddresses.join(', '), - app.containers.length == 1 ? source : '', + app.containers.length == 1 || !options.full ? source : '', ]) }) return items