Skip to content

Commit 1500525

Browse files
committed
Add tooltip for unauthenticated download
1 parent 0553e6c commit 1500525

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

client/modules/IDE/components/Header/Nav.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ const ProjectMenu = () => {
203203
id="file-download"
204204
isDisabled={isUnsaved}
205205
onClick={downloadSketch}
206+
title={
207+
!user.authenticated ? t('Nav.File.LoginToDownload') : undefined
208+
}
206209
>
207210
{t('Nav.File.Download')}
208211
</MenubarItem>

translations/locales/en-US/translations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"Open": "Open",
99
"Download": "Download",
1010
"AddToCollection": "Add to Collection",
11-
"Examples": "Examples"
11+
"Examples": "Examples",
12+
"LoginToDownload": "You must be logged in to download your sketch"
1213
},
1314
"Edit": {
1415
"Title": "Edit",

0 commit comments

Comments
 (0)