[PE] Fix customization.hideNotes param

This commit is contained in:
Julia Radzhabova 2021-04-26 20:22:00 +03:00
parent 24110bdac2
commit 48405d8e76
2 changed files with 2 additions and 1 deletions

View file

@ -162,6 +162,7 @@
macrosMode: 'warn' // warn about automatic macros, 'enable', 'disable', 'warn',
trackChanges: undefined // true/false - open editor with track changes mode on/off,
hideRulers: false // hide or show rulers on first loading (presentation or document editor)
hideNotes: false // hide or show notes panel on first loading (presentation editor)
},
coEditing: {
mode: 'fast', // <coauthoring mode>, 'fast' or 'strict'. if 'fast' and 'customization.autosave'=false -> set 'customization.autosave'=true

View file

@ -748,7 +748,7 @@ define([
Common.Utils.InternalSettings.set("pe-settings-spellcheck", value);
me.api.asc_setSpellCheck(value);
value = Common.localStorage.getBool('pe-hidden-notes', this.appOptions.customization && this.appOptions.customization.hideNotes===false);
value = Common.localStorage.getBool('pe-hidden-notes', this.appOptions.customization && this.appOptions.customization.hideNotes===true);
Common.Utils.InternalSettings.set("pe-hidden-notes", value);
me.api.asc_ShowNotes(!value);