mirror of https://gitee.com/answerdev/answer.git
fix: default http code 400 confirm btn text change to ok (#570)
This commit is contained in:
parent
86ed0ce383
commit
727a973857
|
@ -1132,6 +1132,7 @@ ui:
|
|||
unsuspend: Unsuspend
|
||||
close: Close
|
||||
reopen: Reopen
|
||||
ok: OK
|
||||
search:
|
||||
title: Search Results
|
||||
keywords: Keywords
|
||||
|
|
|
@ -71,7 +71,9 @@ const Index: FC<Props> = ({
|
|||
}}
|
||||
id="ok_button"
|
||||
disabled={confirmBtnDisabled}>
|
||||
{confirmText || t('btns.confirm')}
|
||||
{confirmText === 'OK'
|
||||
? t('btns.ok')
|
||||
: confirmText || t('btns.confirm')}
|
||||
</Button>
|
||||
)}
|
||||
</Modal.Footer>
|
||||
|
|
|
@ -117,6 +117,8 @@ class Request {
|
|||
// default error msg will show modal
|
||||
Modal.confirm({
|
||||
content: msg,
|
||||
showCancel: false,
|
||||
confirmText: 'OK',
|
||||
});
|
||||
return Promise.reject(false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue