mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
feat: disabled reason condition is updated on the dialog form
This commit is contained in:
@ -107,6 +107,7 @@ export const DeleteDocumentDialog = ({ document }: DeleteDocumentDialogProps) =>
|
|||||||
onClick={handleDeleteDocument}
|
onClick={handleDeleteDocument}
|
||||||
loading={isDeletingDocument}
|
loading={isDeletingDocument}
|
||||||
variant="destructive"
|
variant="destructive"
|
||||||
|
disabled={!reason}
|
||||||
>
|
>
|
||||||
{isDeletingDocument ? 'Deleting document...' : 'Delete Document'}
|
{isDeletingDocument ? 'Deleting document...' : 'Delete Document'}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user