🐛 Fix 'list-hosts' when empty #13

Merged
KaKi87 merged 5 commits from Androz2091/synced-over-ssh:fix-lists-no-host into dev 2023-03-25 19:35:41 +01:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit af9e1a0787 - Show all commits

View file

@ -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 => [

View file

@ -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',