Save settings resolvedcomment

This commit is contained in:
ShimaginAndrey 2021-07-08 09:59:37 +03:00
parent ce9c49beaf
commit 1e0f45842d
3 changed files with 3 additions and 1 deletions

View file

@ -497,7 +497,7 @@ class ViewCommentsController extends Component {
api.asc_showComments(this.props.storeApplicationSettings.isResolvedComments);
api.asc_changeComment(comment.uid, ascComment);
if(this.props.storeApplicationSettings.isResolvedComments) {
if(!this.props.storeApplicationSettings.isResolvedComments) {
this.closeViewCurComments();
}
}

View file

@ -54,6 +54,7 @@ export class storeApplicationSettings {
const api = Common.EditorApi.get();
api.asc_showComments(value);
this.isResolvedComments = value;
LocalStorage.setBool("de-settings-resolvedcomment", value);
}
changeMacrosSettings(value) {

View file

@ -111,6 +111,7 @@ export class storeApplicationSettings {
const api = Common.EditorApi.get();
api.asc_showComments(value);
this.isResolvedComments = value;
LocalStorage.setBool("sse-settings-resolvedcomment", value);
}
changeRefStyle(value) {