mirror of https://gitee.com/answerdev/answer.git
fix: #881
This commit is contained in:
parent
1317345279
commit
904946f0af
|
@ -602,7 +602,8 @@
|
||||||
"write_answer": {
|
"write_answer": {
|
||||||
"title": "Your Answer",
|
"title": "Your Answer",
|
||||||
"btn_name": "Post your answer",
|
"btn_name": "Post your answer",
|
||||||
"confirm_info": "you have answered, confirm to continue answer",
|
"tips": "Tips",
|
||||||
|
"confirm_info": "<p>Are you sure you want to add another answer?</p><p>You could use the edit link to refine and improve your existing answer, instead.</p>",
|
||||||
"empty": "Answer cannot be empty."
|
"empty": "Answer cannot be empty."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -62,6 +62,7 @@ const Index: FC<Props> = ({ visible = false, data, callback }) => {
|
||||||
const clickBtn = () => {
|
const clickBtn = () => {
|
||||||
if (data?.answered && !showEditor) {
|
if (data?.answered && !showEditor) {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
|
title: t('tips'),
|
||||||
content: t('confirm_info'),
|
content: t('confirm_info'),
|
||||||
onConfirm: () => {
|
onConfirm: () => {
|
||||||
setShowEditor(true);
|
setShowEditor(true);
|
||||||
|
|
Loading…
Reference in New Issue