mirror of
https://github.com/documenso/documenso.git
synced 2026-07-27 18:35:05 +10:00
fix: resolve envelope editor settings ccer logic (#2628)
## Description Fix issue where having a CCer for a draft document would prevent changing the date/timezone and some other settings.
This commit is contained in:
+5
-1
@@ -8,6 +8,7 @@ import {
|
|||||||
DocumentDistributionMethod,
|
DocumentDistributionMethod,
|
||||||
DocumentVisibility,
|
DocumentVisibility,
|
||||||
EnvelopeType,
|
EnvelopeType,
|
||||||
|
RecipientRole,
|
||||||
SendStatus,
|
SendStatus,
|
||||||
TemplateType,
|
TemplateType,
|
||||||
} from '@prisma/client';
|
} from '@prisma/client';
|
||||||
@@ -234,7 +235,10 @@ export const EnvelopeEditorSettingsDialog = ({
|
|||||||
|
|
||||||
const envelopeHasBeenSent =
|
const envelopeHasBeenSent =
|
||||||
envelope.type === EnvelopeType.DOCUMENT &&
|
envelope.type === EnvelopeType.DOCUMENT &&
|
||||||
envelope.recipients.some((recipient) => recipient.sendStatus === SendStatus.SENT);
|
envelope.recipients.some(
|
||||||
|
(recipient) =>
|
||||||
|
recipient.role !== RecipientRole.CC && recipient.sendStatus === SendStatus.SENT,
|
||||||
|
);
|
||||||
|
|
||||||
const emailSettings = form.watch('meta.emailSettings');
|
const emailSettings = form.watch('meta.emailSettings');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user