fix: fix UI issue for enterprise

This commit is contained in:
Catalin Pit
2024-04-15 15:22:58 +03:00
parent 6b8ff4567d
commit b1474de2da

View File

@ -290,12 +290,7 @@ export const AddSignersFormPartial = ({
<Select <Select
{...field} {...field}
onValueChange={field.onChange} onValueChange={field.onChange}
disabled={ disabled={isSubmitting || hasBeenSentToRecipientId(signer.nativeId)}
isSubmitting ||
hasBeenSentToRecipientId(signer.nativeId) ||
signer.formId === selfSignerFormId ||
signers[index].email === user?.email
}
> >
<SelectTrigger className="bg-background text-muted-foreground"> <SelectTrigger className="bg-background text-muted-foreground">
<SelectValue placeholder="Inherit authentication method" /> <SelectValue placeholder="Inherit authentication method" />
@ -367,12 +362,7 @@ export const AddSignersFormPartial = ({
<Select <Select
{...field} {...field}
onValueChange={field.onChange} onValueChange={field.onChange}
disabled={ disabled={isSubmitting || hasBeenSentToRecipientId(signer.nativeId)}
isSubmitting ||
hasBeenSentToRecipientId(signer.nativeId) ||
signer.formId === selfSignerFormId ||
signers[index].email === user?.email
}
> >
<SelectTrigger className="bg-background w-[60px]"> <SelectTrigger className="bg-background w-[60px]">
{/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions */} {/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions */}
@ -467,9 +457,9 @@ export const AddSignersFormPartial = ({
<Plus className="-ml-1 mr-2 h-5 w-5" /> <Plus className="-ml-1 mr-2 h-5 w-5" />
Add myself Add myself
</Button> </Button>
</div>
{!alwaysShowAdvancedSettings && isDocumentEnterprise && ( {!alwaysShowAdvancedSettings && isDocumentEnterprise && (
<div className="flex flex-row items-center"> <div className="mt-6">
<Checkbox <Checkbox
id="showAdvancedRecipientSettings" id="showAdvancedRecipientSettings"
className="h-5 w-5" className="h-5 w-5"
@ -486,7 +476,6 @@ export const AddSignersFormPartial = ({
</label> </label>
</div> </div>
)} )}
</div>
</Form> </Form>
</AnimateGenericFadeInOut> </AnimateGenericFadeInOut>
</DocumentFlowFormContainerContent> </DocumentFlowFormContainerContent>