mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-09 15:25:33 +00:00
fix: avoid ant design url rule as it requires a tld to be present (#626)
This commit is contained in:
committed by
GitHub
parent
2eef0b7e40
commit
b3402a18d2
@@ -247,7 +247,7 @@ const hookTypes: {
|
||||
<>
|
||||
<Form.Item
|
||||
name={[field.name, "actionDiscord", "webhookUrl"]}
|
||||
rules={[requiredField("webhook URL is required"), { type: "url" }]}
|
||||
rules={[requiredField("webhook URL is required")]}
|
||||
>
|
||||
<Input
|
||||
addonBefore={<div style={{ width: "8em" }}>Discord Webhook</div>}
|
||||
@@ -331,7 +331,7 @@ const hookTypes: {
|
||||
<>
|
||||
<Form.Item
|
||||
name={[field.name, "actionSlack", "webhookUrl"]}
|
||||
rules={[requiredField("webhook URL is required"), { type: "url" }]}
|
||||
rules={[requiredField("webhook URL is required")]}
|
||||
>
|
||||
<Input
|
||||
addonBefore={<div style={{ width: "8em" }}>Slack Webhook</div>}
|
||||
@@ -362,7 +362,7 @@ const hookTypes: {
|
||||
<>
|
||||
<Form.Item
|
||||
name={[field.name, "actionHealthchecks", "webhookUrl"]}
|
||||
rules={[requiredField("Ping URL is required"), { type: "url" }]}
|
||||
rules={[requiredField("Ping URL is required")]}
|
||||
>
|
||||
<Input addonBefore={<div style={{ width: "8em" }}>Ping URL</div>} />
|
||||
</Form.Item>
|
||||
|
||||
Reference in New Issue
Block a user