[DE SSE mobile] Fix Bug 47858

This commit is contained in:
SergeyEzhin 2021-06-28 14:40:46 +03:00
parent 08713dbe99
commit 7117a546c0

View file

@ -480,6 +480,10 @@ class ViewCommentsController extends Component {
} }
const api = Common.EditorApi.get(); const api = Common.EditorApi.get();
api.asc_changeComment(comment.uid, ascComment); api.asc_changeComment(comment.uid, ascComment);
if(!this.props.storeApplicationSettings.isResolvedComments) {
this.closeViewCurComments();
}
} }
} }
deleteComment (comment) { deleteComment (comment) {
@ -591,7 +595,7 @@ class ViewCommentsController extends Component {
const _CommentsController = inject('storeAppOptions', 'storeComments', 'users', "storeApplicationSettings")(observer(CommentsController)); const _CommentsController = inject('storeAppOptions', 'storeComments', 'users', "storeApplicationSettings")(observer(CommentsController));
const _AddCommentController = inject('storeAppOptions', 'storeComments', 'users')(observer(AddCommentController)); const _AddCommentController = inject('storeAppOptions', 'storeComments', 'users')(observer(AddCommentController));
const _EditCommentController = inject('storeComments', 'users')(observer(EditCommentController)); const _EditCommentController = inject('storeComments', 'users')(observer(EditCommentController));
const _ViewCommentsController = inject('storeComments', 'users')(observer(withTranslation()(ViewCommentsController))); const _ViewCommentsController = inject('storeComments', 'users', "storeApplicationSettings")(observer(withTranslation()(ViewCommentsController)));
export { export {
_CommentsController as CommentsController, _CommentsController as CommentsController,