2
0

🚸 (sendEmail) Improve file attachments label

This commit is contained in:
Baptiste Arnaud
2023-03-21 16:41:09 +01:00
parent 7340ec139c
commit 925cf68119

View File

@@ -17,6 +17,7 @@ import { VariableSearchInput } from '@/components/inputs/VariableSearchInput'
import { CredentialsDropdown } from '@/features/credentials/components/CredentialsDropdown' import { CredentialsDropdown } from '@/features/credentials/components/CredentialsDropdown'
import { TextInput, Textarea } from '@/components/inputs' import { TextInput, Textarea } from '@/components/inputs'
import { useWorkspace } from '@/features/workspace/WorkspaceProvider' import { useWorkspace } from '@/features/workspace/WorkspaceProvider'
import { MoreInfoTooltip } from '@/components/MoreInfoTooltip'
type Props = { type Props = {
options: SendEmailOptions options: SendEmailOptions
@@ -188,9 +189,16 @@ export const SendEmailSettings = ({ options, onOptionsChange }: Props) => {
</Stack> </Stack>
)} )}
<Stack> <Stack>
<FormLabel mb="0" htmlFor="variable"> <HStack>
Attachments: <FormLabel m="0" htmlFor="variable">
</FormLabel> Attach files:
</FormLabel>
<MoreInfoTooltip>
The selected variable should have previously collected files from
the File upload input block.
</MoreInfoTooltip>
</HStack>
<VariableSearchInput <VariableSearchInput
initialVariableId={options.attachmentsVariableId} initialVariableId={options.attachmentsVariableId}
onSelectVariable={handleChangeAttachmentVariable} onSelectVariable={handleChangeAttachmentVariable}