diff --git a/packages/client/src/admin/data/LayerTableOfContentsItemEditor.tsx b/packages/client/src/admin/data/LayerTableOfContentsItemEditor.tsx index c06b101b..f7ea18a5 100644 --- a/packages/client/src/admin/data/LayerTableOfContentsItemEditor.tsx +++ b/packages/client/src/admin/data/LayerTableOfContentsItemEditor.tsx @@ -389,15 +389,19 @@ export default function LayerTableOfContentsItemEditor( source?.type === DataSourceTypes.SeasketchMvt) && (
-
+
Enable data download
setDownloadEnabled( @@ -409,12 +413,26 @@ export default function LayerTableOfContentsItemEditor( />
-

- - If enabled, users will be able to download the original data - file uploaded to SeaSketch. - -

+ {Boolean(data.tableOfContentsItem?.primaryDownloadUrl) ? ( +

+ + If enabled, users will be able to download the original data + file uploaded to SeaSketch. + +

+ ) : ( +
+ +

+ + Data download cannot be enabled because the original is + not available. SeaSketch only recently began storing + original uploaded files, so older data layers may need to + be uploaded again to support this capability. + +

+
+ )}
)}