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