From cef5e69aa12e33f7fe758395b3a2f189c491fb7e Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 25 May 2026 12:30:01 +0200 Subject: [PATCH] remove downloadonly --- interface/src/app/settings/Version.tsx | 35 ++++++++------------------ 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/interface/src/app/settings/Version.tsx b/interface/src/app/settings/Version.tsx index c29dd33fc..7fb066a59 100644 --- a/interface/src/app/settings/Version.tsx +++ b/interface/src/app/settings/Version.tsx @@ -258,7 +258,6 @@ const InstallDialog = memo( latestVersion, latestDevVersion, upgradeImportantMessageType, - downloadOnly, platform, LL, onClose, @@ -269,7 +268,6 @@ const InstallDialog = memo( latestVersion: VersionInfo | undefined; latestDevVersion: VersionInfo | undefined; upgradeImportantMessageType: number; - downloadOnly: boolean; platform: string; LL: TranslationFunctions; onClose: () => void; @@ -292,7 +290,7 @@ const InstallDialog = memo( {LL.INSTALL_VERSION( - downloadOnly ? LL.DOWNLOAD(1) : LL.INSTALL(), + LL.INSTALL(), fetchDevVersion ? latestDevVersion?.version : latestVersion?.version )} @@ -342,16 +340,14 @@ const InstallDialog = memo( {LL.DOWNLOAD(0)} - {!downloadOnly && ( - - )} + ); @@ -430,7 +426,6 @@ const Version = () => { useState(false); const [fetchDevVersion, setFetchDevVersion] = useState(false); - const [downloadOnly, setDownloadOnly] = useState(false); const [showVersionInfo, setShowVersionInfo] = useState(0); // 1 = stable, 2 = dev, 3 = partition const [firmwareSize, setFirmwareSize] = useState(0); @@ -460,16 +455,7 @@ const Version = () => { toast.error(String(error.error?.message || 'An error occurred')); }); - const { - data, - send: loadData, - error - } = useRequest(SystemApi.readSystemStatus).onSuccess((event) => { - const systemData = event.data as VersionData; - if (systemData.arduino_version.startsWith('Tasmota')) { - setDownloadOnly(true); - } - }); + const { data, send: loadData, error } = useRequest(SystemApi.readSystemStatus); const { send: sendUploadURL } = useRequest( (url: string) => callAction({ action: 'uploadURL', param: url }), @@ -842,7 +828,6 @@ const Version = () => { latestVersion={latestVersion} latestDevVersion={latestDevVersion} upgradeImportantMessageType={upgradeImportantMessageType} - downloadOnly={downloadOnly} platform={platform} LL={LL} onClose={closeInstallDialog}