-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Display blocking view and remove download button when user have no access to the report #42312
Changes from 1 commit
0315738
5d90f64
e692ac1
a9352da
bc863c6
f7fbbe6
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,7 @@ function ReportAttachments({route}: ReportAttachmentsProps) { | |
ComposerFocusManager.setReadyToFocus(); | ||
}} | ||
onCarouselAttachmentChange={onCarouselAttachmentChange} | ||
shouldShowNotFoundPage={!report?.reportID} | ||
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. As suggested please use data from
We can subscribe to that key in this component. 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. Subscriping will be through the 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. May be hook is better. |
||
/> | ||
); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's wrap the whole view in a condition as
!shouldShowNotFoundPage
is common between both expressions of ternary. But we should test this thoroughly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@parasharrajat Done