From 472f9223695b3f93b44b7273af7cf551f5fa77b1 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 5 Jan 2025 18:26:18 +0100 Subject: [PATCH] tidy up formatting, add a re-install option --- interface/src/app/settings/Version.tsx | 118 ++++++++++++++----------- 1 file changed, 67 insertions(+), 51 deletions(-) diff --git a/interface/src/app/settings/Version.tsx b/interface/src/app/settings/Version.tsx index 600f7e9de..f54e03dd4 100644 --- a/interface/src/app/settings/Version.tsx +++ b/interface/src/app/settings/Version.tsx @@ -183,10 +183,6 @@ const Version = () => { }; const showButtons = () => { - if (!upgradeAvailable) { - return; - } - if (downloadOnly) { return ( ); }; @@ -225,24 +221,24 @@ const Version = () => { return ( <> - + Firmware Version - - - - {LL.VERSION()} - - - Platform - - - Release Type - + + + {LL.VERSION()} - - + + {data.emsesp_version} {data.build_flags && ( @@ -250,8 +246,20 @@ const Version = () => { )} - {getPlatform()} - + + + + Platform + + + {getPlatform()} + + + + Release Type + + + {data.emsesp_version.includes('dev') ? LL.DEVELOPMENT() : LL.STABLE()} @@ -259,40 +267,48 @@ const Version = () => { - + {LL.AVAILABLE_VERSION()} + + + {LL.STABLE()} + + + + + {latestVersion} + + + + {!usingDevVersion && showButtons()} + + + {LL.DEVELOPMENT()} + + + + + {latestDevVersion} + + + + {usingDevVersion && showButtons()} + + {internetLive ? ( <> - - - - {LL.STABLE()} - - - {LL.DEVELOPMENT()} - - - - - {latestVersion}   - - (changelog) - - {!usingDevVersion && showButtons()} - - - {latestDevVersion}   - - (changelog) - - {usingDevVersion && showButtons()} - - - {upgradeAvailable ? ( - + { {LL.UPGRADE_AVAILABLE()} ) : ( - + { ) : ( - device cannot access internet + no access to download site )}