@@ -290,9 +290,18 @@ export const DocCard = (props) => {
|
|||||||
const report = (documentId, docType) => {
|
const report = (documentId, docType) => {
|
||||||
//console.log("report documentId, docType", documentId, docType);
|
//console.log("report documentId, docType", documentId, docType);
|
||||||
};
|
};
|
||||||
|
const documentTitle =
|
||||||
|
docType === "interrogatories-out"
|
||||||
|
? "Outbound requests"
|
||||||
|
: "Discovery responses";
|
||||||
|
|
||||||
const isOutbound =
|
const isOutbound = docType === "interrogatories-out";
|
||||||
responseGenerations > 0 && docType === "interrogatories-out";
|
const buttonText =
|
||||||
|
docType === "interrogatories-out"
|
||||||
|
? "Edit Request"
|
||||||
|
: responseGenerations > 0
|
||||||
|
? "Edit Response"
|
||||||
|
: "Generate Response";
|
||||||
return (
|
return (
|
||||||
<div className="doc-card-container">
|
<div className="doc-card-container">
|
||||||
<div className="doc-card-input">
|
<div className="doc-card-input">
|
||||||
@@ -300,7 +309,7 @@ export const DocCard = (props) => {
|
|||||||
<FileEarmarkText className="doc-file-icon" size="22px" />
|
<FileEarmarkText className="doc-file-icon" size="22px" />
|
||||||
</div>
|
</div>
|
||||||
<div className="doc-col2">
|
<div className="doc-col2">
|
||||||
{title}{" "}
|
{documentTitle}{" "}
|
||||||
{disabled && isReportable ? <Tooltip text={tooltipText} /> : <></>}
|
{disabled && isReportable ? <Tooltip text={tooltipText} /> : <></>}
|
||||||
{disabled && !isReportable ? (
|
{disabled && !isReportable ? (
|
||||||
<Tooltip text={pendingText} iconStyle="clock" />
|
<Tooltip text={pendingText} iconStyle="clock" />
|
||||||
@@ -354,13 +363,7 @@ export const DocCard = (props) => {
|
|||||||
docType
|
docType
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
labelText={
|
labelText={buttonText}
|
||||||
isOutbound
|
|
||||||
? "Edit Request"
|
|
||||||
: responseGenerations > 0
|
|
||||||
? "Edit Response"
|
|
||||||
: "Generate Response"
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -318,5 +318,5 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gen-button {
|
.gen-button {
|
||||||
width: 156px !important;
|
width: 158px !important;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user