The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
feat: disable signing and editing for completed documents
Ephraim Atta-Duncan9e4f1dfe1e57
diff --git a/apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx b/apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsxindex b1d5832f8..8b69f95c4 100644--- a/apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx+++ b/apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx@@ -82,14 +82,14 @@ export const DataTableActionDropdown = ({ row }: DataTableActionDropdownProps) =<DropdownMenuContent className="w-52" align="start" forceMount><DropdownMenuLabel>Action</DropdownMenuLabel>- <DropdownMenuItem disabled={!recipient} asChild>+ <DropdownMenuItem disabled={!recipient || isComplete} asChild><Link href={`/sign/${recipient?.token}`}><Pencil className="mr-2 h-4 w-4" />Sign</Link></DropdownMenuItem>- <DropdownMenuItem disabled={!isOwner} asChild>+ <DropdownMenuItem disabled={!isOwner || isComplete} asChild><Link href={`/documents/${row.id}`}><Edit className="mr-2 h-4 w-4" />Edit