@@ -994,6 +994,7 @@ const ReportTable = (props) => {
994
994
const timezone = extClass ?. [ 0 ] ?. Timezone || "" ;
995
995
const DateFormat = extClass ?. [ 0 ] ?. DateFormat || "MM/DD/YYYY" ;
996
996
const Is12Hr = extClass ?. [ 0 ] ?. Is12HourTime || false ;
997
+ const isCompletedReport = props ?. ReportName === "Completed Documents" ;
997
998
const signers = item ?. Placeholders ?. map ( ( x , i ) => {
998
999
const audit = item ?. AuditTrail ?. find (
999
1000
( audit ) => audit ?. UserPtr ?. objectId === x . signerObjId
@@ -1021,20 +1022,22 @@ const ReportTable = (props) => {
1021
1022
key = { i }
1022
1023
className = "text-sm font-medium flex flex-row gap-2 items-center"
1023
1024
>
1024
- < button
1025
- onClick = { ( ) => setIsModal ( { [ `${ item . objectId } _${ i } ` ] : true } ) }
1026
- className = { `${
1027
- x . Activity === "SIGNED"
1028
- ? "op-border-primary op-text-primary"
1029
- : x . Activity === "VIEWED"
1030
- ? "border-green-400 text-green-400"
1031
- : "border-base-content text-base-content"
1032
- } focus:outline-none border-2 w-[60px] h-[30px] text-[11px] rounded-full`}
1033
- >
1034
- { x ?. Activity ?. toUpperCase ( ) || "-" }
1035
- </ button >
1025
+ { ! isCompletedReport && (
1026
+ < button
1027
+ onClick = { ( ) => setIsModal ( { [ `${ item . objectId } _${ i } ` ] : true } ) }
1028
+ className = { `${
1029
+ x . Activity === "SIGNED"
1030
+ ? "op-border-primary op-text-primary"
1031
+ : x . Activity === "VIEWED"
1032
+ ? "border-green-400 text-green-400"
1033
+ : "border-base-content text-base-content"
1034
+ } focus:outline-none border-2 w-[60px] h-[30px] text-[11px] rounded-full`}
1035
+ >
1036
+ { x ?. Activity ?. toUpperCase ( ) || "-" }
1037
+ </ button >
1038
+ ) }
1036
1039
< div className = "py-2 font-bold text-[12px]" > { x ?. Email || "-" } </ div >
1037
- { isModal [ `${ item . objectId } _${ i } ` ] && (
1040
+ { ! isCompletedReport && isModal [ `${ item . objectId } _${ i } ` ] && (
1038
1041
< ModalUi
1039
1042
isOpen
1040
1043
title = { t ( "document-logs" ) }
@@ -1657,21 +1660,22 @@ const ReportTable = (props) => {
1657
1660
< React . Fragment key = { index } >
1658
1661
< th className = "p-2" >
1659
1662
{ t ( `report-heading.${ item } ` ) }
1660
- { props . ReportName === "Contactbook" && item === "Name" && (
1661
- < button
1662
- type = "button"
1663
- onClick = { toggleSortOrder }
1664
- className = "ml-1"
1665
- >
1666
- < i
1667
- className = {
1668
- sortOrder === "asc"
1669
- ? "fa-light fa-arrow-down-a-z"
1670
- : "fa-light fa-arrow-up-a-z"
1671
- }
1672
- > </ i >
1673
- </ button >
1674
- ) }
1663
+ { props . ReportName === "Contactbook" &&
1664
+ item === "Name" && (
1665
+ < button
1666
+ type = "button"
1667
+ onClick = { toggleSortOrder }
1668
+ className = "ml-1"
1669
+ >
1670
+ < i
1671
+ className = {
1672
+ sortOrder === "asc"
1673
+ ? "fa-light fa-arrow-down-a-z"
1674
+ : "fa-light fa-arrow-up-a-z"
1675
+ }
1676
+ > </ i >
1677
+ </ button >
1678
+ ) }
1675
1679
</ th >
1676
1680
</ React . Fragment >
1677
1681
) ) }
@@ -1807,12 +1811,16 @@ const ReportTable = (props) => {
1807
1811
</ td >
1808
1812
) }
1809
1813
{ props . heading . includes ( "Signers" ) &&
1810
- [ "In-progress documents" , "Need your sign" ] . includes (
1811
- props . ReportName
1812
- ) ? (
1814
+ [
1815
+ "In-progress documents" ,
1816
+ "Need your sign" ,
1817
+ "Completed Documents"
1818
+ ] . includes ( props . ReportName ) ? (
1813
1819
< td className = "px-1 py-2" >
1814
- { ! item ?. IsSignyourself && item ?. Placeholders && (
1820
+ { ! item ?. IsSignyourself && item ?. Placeholders ? (
1815
1821
< > { formatStatusRow ( item ) } </ >
1822
+ ) : (
1823
+ < > -</ >
1816
1824
) }
1817
1825
</ td >
1818
1826
) : (
0 commit comments