From 353f2487a0344cffde43a380a64ea6cc2be3abf4 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Wed, 16 Sep 2020 20:20:48 -0700 Subject: [PATCH] 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. --- .../scripts/components/server/backups/CreateBackupButton.tsx | 3 ++- .../scripts/components/server/schedules/TaskDetailsModal.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/scripts/components/server/backups/CreateBackupButton.tsx b/resources/scripts/components/server/backups/CreateBackupButton.tsx index e505fd251..5e8c3bfdf 100644 --- a/resources/scripts/components/server/backups/CreateBackupButton.tsx +++ b/resources/scripts/components/server/backups/CreateBackupButton.tsx @@ -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. `} > - +
diff --git a/resources/scripts/components/server/schedules/TaskDetailsModal.tsx b/resources/scripts/components/server/schedules/TaskDetailsModal.tsx index 1ef64c138..f6b81bd86 100644 --- a/resources/scripts/components/server/schedules/TaskDetailsModal.tsx +++ b/resources/scripts/components/server/schedules/TaskDetailsModal.tsx @@ -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.'} > - +
}