Skip to content

Commit 353f248

Browse files
committed
Correctly send backup ignored files from textarea; closes pterodactyl#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.
1 parent 3af9e92 commit 353f248

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

resources/scripts/components/server/backups/CreateBackupButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import tw from 'twin.macro';
1212
import { Textarea } from '@/components/elements/Input';
1313
import getServerBackups from '@/api/swr/getServerBackups';
1414
import { ServerContext } from '@/state/server';
15+
import styled from 'styled-components/macro';
1516

1617
interface Values {
1718
name: string;
@@ -44,7 +45,7 @@ const ModalContent = ({ ...props }: RequiredModalProps) => {
4445
prefixing the path with an exclamation point.
4546
`}
4647
>
47-
<FormikField as={Textarea} name={'ignored'} css={tw`h-32`}/>
48+
<FormikField as={Textarea} name={'ignored'} rows={6}/>
4849
</FormikFieldWrapper>
4950
</div>
5051
<div css={tw`flex justify-end`}>

resources/scripts/components/server/schedules/TaskDetailsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const TaskDetailsForm = ({ isEditingTask }: { isEditingTask: boolean }) => {
8484
name={'payload'}
8585
description={'Optional. Include the files and folders to be excluded in this backup. By default, the contents of your .pteroignore file will be used.'}
8686
>
87-
<FormikField as={Textarea} name={'payload'} css={tw`h-32`}/>
87+
<FormikField as={Textarea} name={'payload'} rows={6}/>
8888
</FormikFieldWrapper>
8989
</div>
9090
}

0 commit comments

Comments
 (0)