diff --git a/interface/src/app/status/Version.tsx b/interface/src/app/status/Version.tsx index 9ed9f0365..78c997610 100644 --- a/interface/src/app/status/Version.tsx +++ b/interface/src/app/status/Version.tsx @@ -274,7 +274,6 @@ const InstallDialog = memo( fetchDevVersion, latestVersion, latestDevVersion, - downloadOnly, platform, LL, onClose, @@ -284,7 +283,6 @@ const InstallDialog = memo( fetchDevVersion: boolean; latestVersion?: VersionInfo; latestDevVersion?: VersionInfo; - downloadOnly: boolean; platform: string; LL: TranslationFunctions; onClose: () => void; @@ -309,7 +307,7 @@ const InstallDialog = memo( {LL.INSTALL_VERSION( - downloadOnly ? LL.DOWNLOAD(1) : LL.INSTALL(), + LL.INSTALL(), fetchDevVersion ? latestDevVersion?.name : latestVersion?.name )} @@ -333,16 +331,14 @@ const InstallDialog = memo( {LL.DOWNLOAD(0)} - {!downloadOnly && ( - - )} + ); @@ -423,7 +419,6 @@ const Version = () => { const [stableUpgradeAvailable, setStableUpgradeAvailable] = useState(false); const [internetLive, setInternetLive] = useState(false); - const [downloadOnly, setDownloadOnly] = useState(false); const [showVersionInfo, setShowVersionInfo] = useState(0); // 1 = stable, 2 = dev, 3 = partition const [firmwareSize, setFirmwareSize] = useState(0); @@ -449,9 +444,6 @@ const Version = () => { error } = useRequest(SystemApi.readSystemStatus).onSuccess((event) => { const systemData = event.data as VersionData; - if (systemData.arduino_version.startsWith('Tasmota')) { - setDownloadOnly(true); - } setUsingDevVersion(systemData.emsesp_version.includes('dev')); }); @@ -815,7 +807,6 @@ const Version = () => { fetchDevVersion={fetchDevVersion} latestVersion={latestVersion} latestDevVersion={latestDevVersion} - downloadOnly={downloadOnly} platform={platform} LL={LL} onClose={closeInstallDialog} @@ -851,7 +842,6 @@ const Version = () => { locale, openInstallDialog, fetchDevVersion, - downloadOnly, me.admin, showButtons, handleVersionInfoClose,