File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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" />
Original file line number Diff line number Diff line change 700700 "name" : " DownloadResource" ,
701701 "cfg" : {
702702 "downloadMsgId" : " gnhome.dataset" ,
703+ "tooltipId" : " gnviewer.download" ,
703704 "allowedSources" : [" LOCAL" ]
704705 }
705706 },
You can’t perform that action at this time.
0 commit comments