diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 1f0225d766..c571cbf10d 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -36,6 +36,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released - Fixed some layout issues in the upload view. [#8231](https://github.com/scalableminds/webknossos/pull/8231) - Fixed `FATAL: role "postgres" does not exist` error message in Docker compose. [#8240](https://github.com/scalableminds/webknossos/pull/8240) - Fixed the Zarr 3 implementation not accepting BytesCodec without "configuration" key. [#8282](https://github.com/scalableminds/webknossos/pull/8282) +- Removed the magnification slider for the TIFF export within the download modal if only one magnification is available for the selected layer. [#8297](https://github.com/scalableminds/webknossos/pull/8297) ### Removed - Removed support for HTTP API versions 3 and 4. [#8075](https://github.com/scalableminds/webknossos/pull/8075) diff --git a/frontend/javascripts/oxalis/view/action-bar/download_modal_view.tsx b/frontend/javascripts/oxalis/view/action-bar/download_modal_view.tsx index c709156943..11b1540bf6 100644 --- a/frontend/javascripts/oxalis/view/action-bar/download_modal_view.tsx +++ b/frontend/javascripts/oxalis/view/action-bar/download_modal_view.tsx @@ -576,6 +576,8 @@ function _DownloadModalView({ ); + const onlyOneMagAvailable = selectedLayerMagInfo.getMagList().length === 1; + const tiffExportTab = ( <> @@ -642,7 +644,7 @@ function _DownloadModalView({ style={{ width: "100%" }} /> {boundingBoxCompatibilityAlerts} - {selectedLayerInfos.additionalAxes != null && ( + {(selectedLayerInfos.additionalAxes?.length || 0) > 0 && ( Mag - - - - - - {mag.join("-")} - - + {!onlyOneMagAvailable && ( + + + + + + {mag.join("-")} + + + )} + {onlyOneMagAvailable && mag.join("-")} +
Estimated file size:{" "} {estimateFileSize(selectedLayer, mag, selectedBoundingBox.boundingBox, exportFormat)}