[DE PE SSE mobile] Fix Bug 52098

This commit is contained in:
SergeyEzhin 2021-08-23 13:47:41 +03:00
parent 88a2406080
commit 0550275944
4 changed files with 29 additions and 14 deletions

View file

@ -564,25 +564,37 @@ class ViewCommentsController extends Component {
this.onResolveComment(comment); this.onResolveComment(comment);
break; break;
case 'deleteComment': case 'deleteComment':
f7.dialog.confirm( f7.dialog.create({
_t.textMessageDeleteComment, title: _t.textDeleteComment,
_t.textDeleteComment, text: _t.textMessageDeleteComment,
() => { buttons: [
this.deleteComment(comment); {
text: _t.textCancel
},
{
text: _t.textOk,
onClick: () => this.deleteComment(comment)
} }
); ]
}).open();
break; break;
case 'editReply': case 'editReply':
this.props.storeComments.openEditReply(true, comment, reply); this.props.storeComments.openEditReply(true, comment, reply);
break; break;
case 'deleteReply': case 'deleteReply':
f7.dialog.confirm( f7.dialog.create({
_t.textMessageDeleteReply, title: _t.textDeleteReply,
_t.textDeleteReply, text: _t.textMessageDeleteReply,
() => { buttons: [
this.deleteReply(comment, reply); {
text: _t.textCancel
},
{
text: _t.textOk,
onClick: () => this.deleteReply(comment, reply)
} }
); ]
}).open();
break; break;
case 'addReply': case 'addReply':
this.props.storeComments.openAddReply(true, comment); this.props.storeComments.openAddReply(true, comment);

View file

@ -75,6 +75,7 @@
"textBold": "Bold", "textBold": "Bold",
"textBreakBefore": "Page break before", "textBreakBefore": "Page break before",
"textCancel": "Cancel", "textCancel": "Cancel",
"textOk": "Ok",
"textCaps": "All caps", "textCaps": "All caps",
"textCenter": "Align center", "textCenter": "Align center",
"textChart": "Chart", "textChart": "Chart",

View file

@ -15,6 +15,7 @@
"textAddReply": "Add Reply", "textAddReply": "Add Reply",
"textBack": "Back", "textBack": "Back",
"textCancel": "Cancel", "textCancel": "Cancel",
"textOk": "Ok",
"textCollaboration": "Collaboration", "textCollaboration": "Collaboration",
"textComments": "Comments", "textComments": "Comments",
"textDeleteComment": "Delete Comment", "textDeleteComment": "Delete Comment",

View file

@ -15,6 +15,7 @@
"textAddReply": "Add Reply", "textAddReply": "Add Reply",
"textBack": "Back", "textBack": "Back",
"textCancel": "Cancel", "textCancel": "Cancel",
"textOk": "Ok",
"textCollaboration": "Collaboration", "textCollaboration": "Collaboration",
"textComments": "Comments", "textComments": "Comments",
"textDeleteComment": "Delete Comment", "textDeleteComment": "Delete Comment",