🐛 Fix 'list-hosts' when empty #13
2 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ export default ({
|
|||
user
|
||||
}) => {
|
||||
screenStream.stdin.write(
|
||||
user.getHosts().length === 0 ? getString('home.listHosts.noHosts') :
|
||||
user.getHosts().length === 0 ? getString('listHosts.noHosts') :
|
||||
new AsciiTable()
|
||||
.setHeading('Host', 'URI')
|
||||
.addRowMatrix(user.getHosts().map(host => [
|
||||
|
|
|
|||
|
|
@ -85,8 +85,8 @@ i18next.init({
|
|||
'passwordMismatch': 'This password does not match the one you entered via SSH.'
|
||||
},
|
||||
'listHosts': {
|
||||
title: 'List hosts',
|
||||
noHosts: 'No hosts configured yet.'
|
||||
'title': 'List hosts',
|
||||
'noHosts': 'No hosts configured yet.'
|
||||
},
|
||||
'setHost': {
|
||||
'name': 'Name',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue