mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Improve code modal style.
This commit is contained in:
@ -52,6 +52,7 @@ export const CountDownInput = (props) => {
|
|||||||
const handleOk = () => {
|
const handleOk = () => {
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
onButtonClick(checkType, checkId, key, ...onButtonClickArgs).then(res => {
|
onButtonClick(checkType, checkId, key, ...onButtonClickArgs).then(res => {
|
||||||
|
setKey("");
|
||||||
if (res) {
|
if (res) {
|
||||||
setCoolDown(true);
|
setCoolDown(true);
|
||||||
countDown(coolDownTime);
|
countDown(coolDownTime);
|
||||||
@ -61,6 +62,7 @@ export const CountDownInput = (props) => {
|
|||||||
|
|
||||||
const handleCancel = () => {
|
const handleCancel = () => {
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
|
setKey("");
|
||||||
}
|
}
|
||||||
|
|
||||||
const loadHumanCheck = () => {
|
const loadHumanCheck = () => {
|
||||||
@ -93,7 +95,7 @@ export const CountDownInput = (props) => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Row>
|
<Row>
|
||||||
<Input placeholder={i18next.t("general:Enter the code")} onChange={e => setKey(e.target.value)} />
|
<Input value={key} placeholder={i18next.t("general:Captcha")} onPressEnter={handleOk} onChange={e => setKey(e.target.value)} />
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
)
|
)
|
||||||
@ -131,9 +133,15 @@ export const CountDownInput = (props) => {
|
|||||||
onSearch={clickButton}
|
onSearch={clickButton}
|
||||||
/>
|
/>
|
||||||
<Modal
|
<Modal
|
||||||
|
closable={false}
|
||||||
|
maskClosable={false}
|
||||||
|
title={i18next.t("general:Captcha")}
|
||||||
visible={visible}
|
visible={visible}
|
||||||
|
okText={i18next.t("user:OK")}
|
||||||
|
cancelText={i18next.t("user:Cancel")}
|
||||||
onCancel={handleCancel}
|
onCancel={handleCancel}
|
||||||
onOk={handleOk}
|
onOk={handleOk}
|
||||||
|
width={300}
|
||||||
>
|
>
|
||||||
{renderCheck()}
|
{renderCheck()}
|
||||||
</Modal>
|
</Modal>
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
"Swagger": "Swagger",
|
"Swagger": "Swagger",
|
||||||
"Phone Prefix": "Phone Prefix",
|
"Phone Prefix": "Phone Prefix",
|
||||||
"Enter the code": "Enter the code",
|
"Enter the code": "Enter the code",
|
||||||
|
"Captcha": "Captcha",
|
||||||
"Authorization code":"Authorization code",
|
"Authorization code":"Authorization code",
|
||||||
"Access token":"Access token",
|
"Access token":"Access token",
|
||||||
"Expires in":"Expires in",
|
"Expires in":"Expires in",
|
||||||
@ -168,6 +169,7 @@
|
|||||||
"New password contains blank space.": "New password contains blank space.",
|
"New password contains blank space.": "New password contains blank space.",
|
||||||
"Invalid new password": "Invalid new password",
|
"Invalid new password": "Invalid new password",
|
||||||
"Password": "Password",
|
"Password": "Password",
|
||||||
|
"OK": "OK",
|
||||||
"Cancel": "Cancel",
|
"Cancel": "Cancel",
|
||||||
"input password": "input password",
|
"input password": "input password",
|
||||||
"Reset Email...": "Reset Email...",
|
"Reset Email...": "Reset Email...",
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
"Swagger": "API总览",
|
"Swagger": "API总览",
|
||||||
"Phone Prefix": "手机号前缀",
|
"Phone Prefix": "手机号前缀",
|
||||||
"Enter the code": "输入验证码",
|
"Enter the code": "输入验证码",
|
||||||
|
"Captcha": "人机验证码",
|
||||||
"Authorization code": "授权码",
|
"Authorization code": "授权码",
|
||||||
"Access token": "访问令牌",
|
"Access token": "访问令牌",
|
||||||
"Expires in": "有效期",
|
"Expires in": "有效期",
|
||||||
@ -168,6 +169,7 @@
|
|||||||
"New password contains blank space.": "新密码包含空格。",
|
"New password contains blank space.": "新密码包含空格。",
|
||||||
"Invalid new password": "非法的新密码。",
|
"Invalid new password": "非法的新密码。",
|
||||||
"Password": "密码",
|
"Password": "密码",
|
||||||
|
"OK": "确定",
|
||||||
"Cancel": "取消",
|
"Cancel": "取消",
|
||||||
"input password": "输入密码",
|
"input password": "输入密码",
|
||||||
"Reset Email...": "重置邮箱...",
|
"Reset Email...": "重置邮箱...",
|
||||||
|
Reference in New Issue
Block a user