-
Notifications
You must be signed in to change notification settings - Fork 38
[MDS-5552]replacing now manage doc and admin with zip download #2774
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
Conversation
@@ -366,6 +366,7 @@ export const DocumentTable: FC<DocumentTableProps> = ({ | |||
setCompressionModalVisible={setCompressionModal} | |||
isCompressionModalVisible={isCompressionModal} | |||
compressionInProgress={setCompressionInProgress} | |||
showArchiveDownloadWarning={true} |
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.
would true be a reasonable default for this prop?
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.
@taraepp that is a good point. I initially thought to set this prop as a way to temporarily disable the archive warning modal that pops up because NoW section hasn't had archive and versioning setup yet. At the same time, it is possible for other sections not just Major Projects or NoW to use document compression within the DocumentTable since DocumentTable is used in alot of different areas that also don't have archive or versioning files.
Would it make more sense to use DocumentTable's props showVersionHistory
and canArchiveDocuments
. So something like showDownloadWarning={showVersionHistory || canArchiveDocuments}
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.
I adjusted the DocumentTable's showDownloadWarning default value to be based on showVersionHistory || canArchiveDocuments
in the latest commit.
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.
Nice. Love the tweaks for reusability!
0e966ac
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.
👍🏻
Objective
MDS-5552
Replaces the existing download of NoW documents and Permit Package documents in NoW Manage Documents tab with download zip, similar to Major projects.
Replaces the existing download of Permit Package documents in NoW Administrative tab with download zip, similar to Major projects.