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
|
unsuspend: Unsuspend
|
||||||
close: Close
|
close: Close
|
||||||
reopen: Reopen
|
reopen: Reopen
|
||||||
|
ok: OK
|
||||||
search:
|
search:
|
||||||
title: Search Results
|
title: Search Results
|
||||||
keywords: Keywords
|
keywords: Keywords
|
||||||
|
|
|
@ -71,7 +71,9 @@ const Index: FC<Props> = ({
|
||||||
}}
|
}}
|
||||||
id="ok_button"
|
id="ok_button"
|
||||||
disabled={confirmBtnDisabled}>
|
disabled={confirmBtnDisabled}>
|
||||||
{confirmText || t('btns.confirm')}
|
{confirmText === 'OK'
|
||||||
|
? t('btns.ok')
|
||||||
|
: confirmText || t('btns.confirm')}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</Modal.Footer>
|
</Modal.Footer>
|
||||||
|
|
|
@ -117,6 +117,8 @@ class Request {
|
||||||
// default error msg will show modal
|
// default error msg will show modal
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
content: msg,
|
content: msg,
|
||||||
|
showCancel: false,
|
||||||
|
confirmText: 'OK',
|
||||||
});
|
});
|
||||||
return Promise.reject(false);
|
return Promise.reject(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue