mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
fix: hide account action reauth
This commit is contained in:
@ -9,7 +9,11 @@ import { useForm } from 'react-hook-form';
|
|||||||
import { DATE_FORMATS, DEFAULT_DOCUMENT_DATE_FORMAT } from '@documenso/lib/constants/date-formats';
|
import { DATE_FORMATS, DEFAULT_DOCUMENT_DATE_FORMAT } from '@documenso/lib/constants/date-formats';
|
||||||
import { DOCUMENT_AUTH_TYPES } from '@documenso/lib/constants/document-auth';
|
import { DOCUMENT_AUTH_TYPES } from '@documenso/lib/constants/document-auth';
|
||||||
import { DEFAULT_DOCUMENT_TIME_ZONE, TIME_ZONES } from '@documenso/lib/constants/time-zones';
|
import { DEFAULT_DOCUMENT_TIME_ZONE, TIME_ZONES } from '@documenso/lib/constants/time-zones';
|
||||||
import { DocumentAccessAuth, DocumentActionAuth } from '@documenso/lib/types/document-auth';
|
import {
|
||||||
|
DocumentAccessAuth,
|
||||||
|
DocumentActionAuth,
|
||||||
|
DocumentAuth,
|
||||||
|
} from '@documenso/lib/types/document-auth';
|
||||||
import { extractDocumentAuthMethods } from '@documenso/lib/utils/document-auth';
|
import { extractDocumentAuthMethods } from '@documenso/lib/utils/document-auth';
|
||||||
import { DocumentStatus, type Field, type Recipient, SendStatus } from '@documenso/prisma/client';
|
import { DocumentStatus, type Field, type Recipient, SendStatus } from '@documenso/prisma/client';
|
||||||
import type { DocumentWithData } from '@documenso/prisma/types/document-with-data';
|
import type { DocumentWithData } from '@documenso/prisma/types/document-with-data';
|
||||||
@ -216,9 +220,9 @@ export const AddSettingsFormPartial = ({
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul className="ml-3.5 list-outside list-disc space-y-0.5 py-2">
|
<ul className="ml-3.5 list-outside list-disc space-y-0.5 py-2">
|
||||||
<li>
|
{/* <li>
|
||||||
<strong>Require account</strong> - The recipient must be signed in
|
<strong>Require account</strong> - The recipient must be signed in
|
||||||
</li>
|
</li> */}
|
||||||
<li>
|
<li>
|
||||||
<strong>Require passkey</strong> - The recipient must have an account
|
<strong>Require passkey</strong> - The recipient must have an account
|
||||||
and passkey configured via their settings
|
and passkey configured via their settings
|
||||||
@ -242,11 +246,13 @@ export const AddSettingsFormPartial = ({
|
|||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
|
|
||||||
<SelectContent position="popper">
|
<SelectContent position="popper">
|
||||||
{Object.values(DocumentActionAuth).map((authType) => (
|
{Object.values(DocumentActionAuth)
|
||||||
<SelectItem key={authType} value={authType}>
|
.filter((auth) => auth !== DocumentAuth.ACCOUNT)
|
||||||
{DOCUMENT_AUTH_TYPES[authType].value}
|
.map((authType) => (
|
||||||
</SelectItem>
|
<SelectItem key={authType} value={authType}>
|
||||||
))}
|
{DOCUMENT_AUTH_TYPES[authType].value}
|
||||||
|
</SelectItem>
|
||||||
|
))}
|
||||||
|
|
||||||
{/* Note: -1 is remapped in the Zod schema to the required value. */}
|
{/* Note: -1 is remapped in the Zod schema to the required value. */}
|
||||||
<SelectItem value={'-1'}>None</SelectItem>
|
<SelectItem value={'-1'}>None</SelectItem>
|
||||||
|
|||||||
@ -302,10 +302,10 @@ export const AddSignersFormPartial = ({
|
|||||||
global action signing authentication method configured in
|
global action signing authentication method configured in
|
||||||
the "General Settings" step
|
the "General Settings" step
|
||||||
</li>
|
</li>
|
||||||
<li>
|
{/* <li>
|
||||||
<strong>Require account</strong> - The recipient must be
|
<strong>Require account</strong> - The recipient must be
|
||||||
signed in
|
signed in
|
||||||
</li>
|
</li> */}
|
||||||
<li>
|
<li>
|
||||||
<strong>Require passkey</strong> - The recipient must have
|
<strong>Require passkey</strong> - The recipient must have
|
||||||
an account and passkey configured via their settings
|
an account and passkey configured via their settings
|
||||||
@ -326,11 +326,13 @@ export const AddSignersFormPartial = ({
|
|||||||
{/* Note: -1 is remapped in the Zod schema to the required value. */}
|
{/* Note: -1 is remapped in the Zod schema to the required value. */}
|
||||||
<SelectItem value="-1">Inherit authentication method</SelectItem>
|
<SelectItem value="-1">Inherit authentication method</SelectItem>
|
||||||
|
|
||||||
{Object.values(RecipientActionAuth).map((authType) => (
|
{Object.values(RecipientActionAuth)
|
||||||
<SelectItem key={authType} value={authType}>
|
.filter((auth) => auth !== RecipientActionAuth.ACCOUNT)
|
||||||
{DOCUMENT_AUTH_TYPES[authType].value}
|
.map((authType) => (
|
||||||
</SelectItem>
|
<SelectItem key={authType} value={authType}>
|
||||||
))}
|
{DOCUMENT_AUTH_TYPES[authType].value}
|
||||||
|
</SelectItem>
|
||||||
|
))}
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user