mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 17:31:55 +08:00
fix: #713
This commit is contained in:
parent
1c3cb1b21b
commit
799ad61dcc
@ -37,7 +37,7 @@ const AccessFormTelegramBotConfig = ({ form: formInst, formName, disabled, initi
|
|||||||
.nullish()
|
.nullish()
|
||||||
.refine((v) => {
|
.refine((v) => {
|
||||||
if (v == null || v + "" === "") return true;
|
if (v == null || v + "" === "") return true;
|
||||||
return /^\d+$/.test(v + "") && +v! > 0;
|
return !Number.isNaN(+v!) && +v! !== 0;
|
||||||
}, t("access.form.telegram_bot_default_chat_id.placeholder"))
|
}, t("access.form.telegram_bot_default_chat_id.placeholder"))
|
||||||
)
|
)
|
||||||
.nullish(),
|
.nullish(),
|
||||||
@ -72,7 +72,7 @@ const AccessFormTelegramBotConfig = ({ form: formInst, formName, disabled, initi
|
|||||||
rules={[formRule]}
|
rules={[formRule]}
|
||||||
tooltip={<span dangerouslySetInnerHTML={{ __html: t("access.form.telegram_bot_default_chat_id.tooltip") }}></span>}
|
tooltip={<span dangerouslySetInnerHTML={{ __html: t("access.form.telegram_bot_default_chat_id.tooltip") }}></span>}
|
||||||
>
|
>
|
||||||
<Input type="number" allowClear placeholder={t("access.form.telegram_bot_default_chat_id.placeholder")} />
|
<Input allowClear placeholder={t("access.form.telegram_bot_default_chat_id.placeholder")} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
|
@ -37,7 +37,7 @@ const NotifyNodeConfigFormTelegramBotConfig = ({
|
|||||||
.nullish()
|
.nullish()
|
||||||
.refine((v) => {
|
.refine((v) => {
|
||||||
if (v == null || v + "" === "") return true;
|
if (v == null || v + "" === "") return true;
|
||||||
return /^\d+$/.test(v + "") && +v! > 0;
|
return !Number.isNaN(+v!) && +v! !== 0;
|
||||||
}, t("workflow_node.notify.form.telegram_bot_chat_id.placeholder"))
|
}, t("workflow_node.notify.form.telegram_bot_chat_id.placeholder"))
|
||||||
)
|
)
|
||||||
.nullish(),
|
.nullish(),
|
||||||
@ -63,7 +63,7 @@ const NotifyNodeConfigFormTelegramBotConfig = ({
|
|||||||
rules={[formRule]}
|
rules={[formRule]}
|
||||||
tooltip={<span dangerouslySetInnerHTML={{ __html: t("workflow_node.notify.form.telegram_bot_chat_id.tooltip") }}></span>}
|
tooltip={<span dangerouslySetInnerHTML={{ __html: t("workflow_node.notify.form.telegram_bot_chat_id.tooltip") }}></span>}
|
||||||
>
|
>
|
||||||
<Input type="number" allowClear placeholder={t("workflow_node.notify.form.telegram_bot_chat_id.placeholder")} />
|
<Input allowClear placeholder={t("workflow_node.notify.form.telegram_bot_chat_id.placeholder")} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user