mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(filters): use TextArea for webhook data field (#785)
switch to TextArea for webhook data input field
This commit is contained in:
parent
b6062ffc60
commit
5851b0abe5
1 changed files with 3 additions and 1 deletions
|
@ -15,6 +15,7 @@ import { CollapsableSection } from "./details";
|
|||
import { CustomTooltip } from "../../components/tooltips/CustomTooltip";
|
||||
import { Link } from "react-router-dom";
|
||||
import { useFormikContext } from "formik";
|
||||
import { TextArea } from "../../components/inputs/input";
|
||||
|
||||
interface FilterActionsProps {
|
||||
filter: Filter;
|
||||
|
@ -183,10 +184,11 @@ const TypeForm = ({ action, idx, clients }: TypeFormProps) => {
|
|||
columns={6}
|
||||
placeholder="Host eg. http://localhost/webhook"
|
||||
/>
|
||||
<TextField
|
||||
<TextArea
|
||||
name={`actions.${idx}.webhook_data`}
|
||||
label="Data (json)"
|
||||
columns={6}
|
||||
rows={5}
|
||||
placeholder={"Request data: { \"key\": \"value\" }"}
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue