Skip to content

Commit da185b4

Browse files
authored
Fix - Download button tooltip (#2228)
* Fix - Download button tooltip * inline comment
1 parent 40ad52b commit da185b4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

geonode_mapstore_client/client/js/plugins/DownloadResource.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const DownloadButton = ({
3939
renderType = "button",
4040
showIcon,
4141
downloadMsgId = "gnviewer.download",
42+
tooltipId = downloadMsgId, // for backward compatibility
4243
allowedSources = [SOURCE_TYPES.LOCAL, SOURCE_TYPES.REMOTE],
4344
downloading
4445
}) => {
@@ -62,7 +63,7 @@ const DownloadButton = ({
6263
return downloadInfo.url ? (
6364
<Component
6465
{...isButton && { variant, size }}
65-
{...showIcon && { tooltipId: downloadMsgId }}
66+
{...showIcon && { tooltipId }}
6667
download
6768
href={ downloadInfo.url }
6869
target="_blank"
@@ -81,7 +82,7 @@ const DownloadButton = ({
8182
disabled={!!downloading}
8283
onClick={() => downloading ? null : onAction(_resource)}
8384
{...isButton && { variant, size}}
84-
{...showIcon && { tooltipId: downloadMsgId }}
85+
{...showIcon && { tooltipId }}
8586
>
8687
{showIcon
8788
? <Glyphicon glyph="download" />

geonode_mapstore_client/static/mapstore/configs/localConfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@
700700
"name": "DownloadResource",
701701
"cfg": {
702702
"downloadMsgId": "gnhome.dataset",
703+
"tooltipId": "gnviewer.download",
703704
"allowedSources": ["LOCAL"]
704705
}
705706
},

0 commit comments

Comments
 (0)