Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
4f1eaa5dd6
commit
2d86c7da9a
@@ -344,6 +344,9 @@ function PleadingNewPage() {
|
||||
<>
|
||||
<Button variant="outline" onClick={onDownloadPdf}><FileText className="h-4 w-4 mr-2" /> Download PDF</Button>
|
||||
<Button variant="outline" onClick={onDownload}><Download className="h-4 w-4 mr-2" /> Download .docx</Button>
|
||||
<Button variant="outline" onClick={() => setSaveToCaseOpen(true)}>
|
||||
<FileText className="h-4 w-4 mr-2" /> Save to case
|
||||
</Button>
|
||||
<Button onClick={onSave} disabled={saving}>
|
||||
{saving ? <Loader2 className="h-4 w-4 mr-2 animate-spin" /> : <Save className="h-4 w-4 mr-2" />}
|
||||
Save & download
|
||||
@@ -837,6 +840,16 @@ function PleadingNewPage() {
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<SaveToCaseDialog
|
||||
open={saveToCaseOpen}
|
||||
onOpenChange={setSaveToCaseOpen}
|
||||
defaultCaseId={caseId || undefined}
|
||||
formats={["pdf", "docx"]}
|
||||
defaultName={(docName || "Pleading").replace(/[^a-zA-Z0-9._-]/g, "_")}
|
||||
defaultFolder="Pleadings"
|
||||
onConfirm={onSaveToCase}
|
||||
/>
|
||||
</PageContainer>
|
||||
</ProtectedLayout>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user