🐛 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
}) => {
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 => [

View file

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