From b31efd58cab797bc7027466dd6284b3775096399 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 26 Apr 2018 15:17:02 +0300 Subject: [PATCH] [DE][SSE] Don't show resolved comments by default --- apps/documenteditor/main/app/controller/LeftMenu.js | 2 +- apps/documenteditor/main/app/controller/Main.js | 2 +- apps/spreadsheeteditor/main/app/controller/LeftMenu.js | 2 +- apps/spreadsheeteditor/main/app/controller/Main.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index 983b1f656..3c028b807 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -333,7 +333,7 @@ define([ value = Common.localStorage.getBool("de-settings-livecomment", true); Common.Utils.InternalSettings.set("de-settings-livecomment", value); - var resolved = Common.localStorage.getBool("de-settings-resolvedcomment", true); + var resolved = Common.localStorage.getBool("de-settings-resolvedcomment"); Common.Utils.InternalSettings.set("de-settings-resolvedcomment", resolved); if (this.mode.canComments && this.leftMenu.panelComments.isVisible()) value = resolved = true; diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 7246d21c6..b30455b5b 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -815,7 +815,7 @@ define([ /** coauthoring begin **/ this.isLiveCommenting = Common.localStorage.getBool("de-settings-livecomment", true); Common.Utils.InternalSettings.set("de-settings-livecomment", this.isLiveCommenting); - value = Common.localStorage.getBool("de-settings-resolvedcomment", true); + value = Common.localStorage.getBool("de-settings-resolvedcomment"); Common.Utils.InternalSettings.set("de-settings-resolvedcomment", value); this.isLiveCommenting ? this.api.asc_showComments(value) : this.api.asc_hideComments(); /** coauthoring end **/ diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index 9325c24b8..2adb59ce8 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -279,7 +279,7 @@ define([ /** coauthoring begin **/ value = Common.localStorage.getBool("sse-settings-livecomment", true); Common.Utils.InternalSettings.set("sse-settings-livecomment", value); - var resolved = Common.localStorage.getBool("sse-settings-resolvedcomment", true); + var resolved = Common.localStorage.getBool("sse-settings-resolvedcomment"); Common.Utils.InternalSettings.set("sse-settings-resolvedcomment", resolved); if (this.mode.canComments && this.leftMenu.panelComments.isVisible()) diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 38dbf0ce1..c5dc26601 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -616,7 +616,7 @@ define([ /** coauthoring begin **/ this.isLiveCommenting = Common.localStorage.getBool("sse-settings-livecomment", true); Common.Utils.InternalSettings.set("sse-settings-livecomment", this.isLiveCommenting); - value = Common.localStorage.getBool("sse-settings-resolvedcomment", true); + value = Common.localStorage.getBool("sse-settings-resolvedcomment"); Common.Utils.InternalSettings.set("sse-settings-resolvedcomment", value); this.isLiveCommenting ? this.api.asc_showComments(value) : this.api.asc_hideComments();