💄 Display hosts chaining in hosts table

dev
KaKi87 2 years ago
parent 7518e5d188
commit 0cff0bb951

@ -193,7 +193,10 @@ const getViews = screen => {
height: tableHeight,
columnsWidth: [ 50, 50 ],
headers: [ 'Host', 'URI' ],
data: hosts.map(host => [ host.name, `${host.username}@${host.address}:${host.port}` ])
data: hosts.map(host => [
host.chain ? `${host.name} (via ${host.chain.split(',').join(' -> ')})` : host.name,
`${host.username}@${host.address}:${host.port}`
])
});
selectButton.on('press', () => {
hostsTable.focus();

Loading…
Cancel
Save