From 9aba013e22446949165402f9b6b07a9027ae8711 Mon Sep 17 00:00:00 2001 From: sawka Date: Wed, 1 Feb 2023 00:45:08 -0800 Subject: [PATCH] always show install options --- src/main.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index b1104be2..f076bc32 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -993,7 +993,7 @@ class InfoRemoteShow extends React.Component<{}, {}> { renderInstallButton(remote : RemoteType) : any { if (remote.status == "connected" || remote.status == "connecting") { - return "(must disconnect to install)"; + return null; } if (remote.installstatus == "disconnected" || remote.installstatus == "error") { return
this.installRemote(remote.remoteid)} className="text-button connect-button">[run install]
@@ -1006,9 +1006,16 @@ class InfoRemoteShow extends React.Component<{}, {}> { renderInstallStatus(remote : RemoteType) : any { let statusStr : string = null; + remote.mshellversion if (remote.installstatus == "disconnected") { if (remote.needsmshellupgrade) { - statusStr = "needs upgrade" + statusStr = "mshell " + remote.mshellversion + " (needs upgrade)"; + } + else if (isBlank(remote.mshellversion)) { + statusStr = "mshell unknown"; + } + else { + statusStr = "mshell " + remote.mshellversion + " (current)"; } } else {