-
Notifications
You must be signed in to change notification settings - Fork 4k
Rename "Export current view" option and standardize export filenames #94083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4c1f253
81aca1b
7c20177
5a387d6
7959479
443c432
def3a09
cac7344
9ad3b4c
df61ca7
d037679
c535ebc
a4ce766
f5b1f8a
a481e7a
73c4a82
dbfb9c7
c58f69d
d21d2b2
e7a9429
83deb77
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,10 @@ const fetchFileDownload: FileDownload = ( | |
| formData = undefined, | ||
| requestType = 'get', | ||
| onDownloadFailed?: () => void, | ||
| // `shouldUnlink` is part of the cross-platform FileDownload signature but has no meaning on web, so it is intentionally unused here. | ||
| // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
| shouldUnlink = false, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we need this if it is not used?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see that it is part of the signature. Can you add a comment here for this disabled rule
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| appendTimestamp = true, | ||
| ) => { | ||
| const resolvedUrl = tryResolveUrlFromApiRoot(url); | ||
|
|
||
|
|
@@ -72,7 +76,8 @@ const fetchFileDownload: FileDownload = ( | |
| .then((blob) => { | ||
| // Create blob link to download | ||
| const href = URL.createObjectURL(new Blob([blob])); | ||
| const completeFileName = appendTimeToFileName(fileName ?? getFileName(url)); | ||
| const resolvedFileName = fileName ?? getFileName(url); | ||
| const completeFileName = appendTimestamp ? appendTimeToFileName(resolvedFileName) : resolvedFileName; | ||
| createDownloadLink(href, completeFileName); | ||
| }) | ||
| .catch(() => { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.