Skip to content

Commit

Permalink
Merge pull request #36030 from mkhutornyi/fix-34348
Browse files Browse the repository at this point in the history
disable downloading EReceipt
  • Loading branch information
yuwenmemon authored Feb 8, 2024
2 parents 10efcfe + 09ad6ec commit fb2e8d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AttachmentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ function AttachmentModal({
},
});
}
if (!isOffline) {
if (!isOffline && allowDownload) {
menuItems.push({
icon: Expensicons.Download,
text: translate('common.download'),
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/ReportActionItemImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function ReportActionItemImage({thumbnail, image, enablePreviewModal = false, tr
report={report}
isReceiptAttachment
canEditReceipt={canEditReceipt}
allowDownload
allowDownload={!isEReceipt}
originalFileName={filename}
>
{({show}) => (
Expand Down

0 comments on commit fb2e8d2

Please sign in to comment.