diff options
author | LASER-Yi <[email protected]> | 2023-08-20 22:08:30 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2023-08-20 22:08:30 +0800 |
commit | 53951a5fad1143dd190d79faaca30e06e3c4ced8 (patch) | |
tree | 6974088de50ec437a4d3dbe4e56a499c8817ca98 | |
parent | 42ae3af4a251ee976f89178368baa1a85e2116a0 (diff) | |
download | bazarr-53951a5fad1143dd190d79faaca30e06e3c4ced8.tar.gz bazarr-53951a5fad1143dd190d79faaca30e06e3c4ced8.zip |
Fix some minor issues in the Notification modal
-rw-r--r-- | frontend/src/pages/Settings/Notifications/components.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/frontend/src/pages/Settings/Notifications/components.tsx b/frontend/src/pages/Settings/Notifications/components.tsx index 2efde75e5..11ff4db0c 100644 --- a/frontend/src/pages/Settings/Notifications/components.tsx +++ b/frontend/src/pages/Settings/Notifications/components.tsx @@ -73,9 +73,14 @@ const NotificationForm: FunctionComponent<Props> = ({ > <Stack> <Selector + searchable disabled={payload !== null} {...options} {...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> <div hidden={form.values.selection === null}> <Textarea |