From 1e0f45842ddbe73379de878ca58a57ed8b8afc39 Mon Sep 17 00:00:00 2001 From: ShimaginAndrey Date: Thu, 8 Jul 2021 09:59:37 +0300 Subject: [PATCH] Save settings resolvedcomment --- apps/common/mobile/lib/controller/collaboration/Comments.jsx | 2 +- apps/documenteditor/mobile/src/store/applicationSettings.js | 1 + apps/spreadsheeteditor/mobile/src/store/applicationSettings.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/common/mobile/lib/controller/collaboration/Comments.jsx b/apps/common/mobile/lib/controller/collaboration/Comments.jsx index fa00c14f5..09501790c 100644 --- a/apps/common/mobile/lib/controller/collaboration/Comments.jsx +++ b/apps/common/mobile/lib/controller/collaboration/Comments.jsx @@ -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(); } } diff --git a/apps/documenteditor/mobile/src/store/applicationSettings.js b/apps/documenteditor/mobile/src/store/applicationSettings.js index df4c5f71b..4fbd1c86f 100644 --- a/apps/documenteditor/mobile/src/store/applicationSettings.js +++ b/apps/documenteditor/mobile/src/store/applicationSettings.js @@ -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) { diff --git a/apps/spreadsheeteditor/mobile/src/store/applicationSettings.js b/apps/spreadsheeteditor/mobile/src/store/applicationSettings.js index c0967025d..7b6c5c930 100644 --- a/apps/spreadsheeteditor/mobile/src/store/applicationSettings.js +++ b/apps/spreadsheeteditor/mobile/src/store/applicationSettings.js @@ -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) {