Correctly send backup ignored files from textarea; closes #2349

For some reason Formik can't handle the css macro on these fields? Concerning, but not wasting time this close to release to dig into it more.
This commit is contained in:
Dane Everitt 2020-09-16 20:20:48 -07:00
parent 3af9e92603
commit 353f2487a0
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 3 additions and 2 deletions

View file

@ -12,6 +12,7 @@ import tw from 'twin.macro';
import { Textarea } from '@/components/elements/Input';
import getServerBackups from '@/api/swr/getServerBackups';
import { ServerContext } from '@/state/server';
import styled from 'styled-components/macro';
interface Values {
name: string;
@ -44,7 +45,7 @@ const ModalContent = ({ ...props }: RequiredModalProps) => {
prefixing the path with an exclamation point.
`}
>
<FormikField as={Textarea} name={'ignored'} css={tw`h-32`}/>
<FormikField as={Textarea} name={'ignored'} rows={6}/>
</FormikFieldWrapper>
</div>
<div css={tw`flex justify-end`}>

View file

@ -84,7 +84,7 @@ const TaskDetailsForm = ({ isEditingTask }: { isEditingTask: boolean }) => {
name={'payload'}
description={'Optional. Include the files and folders to be excluded in this backup. By default, the contents of your .pteroignore file will be used.'}
>
<FormikField as={Textarea} name={'payload'} css={tw`h-32`}/>
<FormikField as={Textarea} name={'payload'} rows={6}/>
</FormikFieldWrapper>
</div>
}