mirror of https://github.com/morpheus65535/bazarr
Fix some minor issues in the Notification modal
This commit is contained in:
parent
42ae3af4a2
commit
53951a5fad
|
@ -73,9 +73,14 @@ const NotificationForm: FunctionComponent<Props> = ({
|
||||||
>
|
>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Selector
|
<Selector
|
||||||
|
searchable
|
||||||
disabled={payload !== null}
|
disabled={payload !== null}
|
||||||
{...options}
|
{...options}
|
||||||
{...form.getInputProps("selection")}
|
{...form.getInputProps("selection")}
|
||||||
|
// We also to update the url, so override the default event from getInputProps
|
||||||
|
onChange={(value) => {
|
||||||
|
form.setValues({ selection: value, url: value?.url ?? undefined });
|
||||||
|
}}
|
||||||
></Selector>
|
></Selector>
|
||||||
<div hidden={form.values.selection === null}>
|
<div hidden={form.values.selection === null}>
|
||||||
<Textarea
|
<Textarea
|
||||||
|
|
Loading…
Reference in New Issue