Skip to content

Commit

Permalink
Hide right menu by default (change default value for customization->h…
Browse files Browse the repository at this point in the history
…ideRightMenu parameter)
  • Loading branch information
JuliaRadzhabova committed Feb 15, 2024
1 parent 0be8941 commit 5842b71
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/api/documents/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
compactToolbar: false,
leftMenu: true, // must be deprecated. use layout.leftMenu instead
rightMenu: true, // must be deprecated. use layout.rightMenu instead
hideRightMenu: false, // hide or show right panel on first loading
hideRightMenu: true, // hide or show right panel on first loading !! default value changed in 8.1
toolbar: true, // must be deprecated. use layout.toolbar instead
statusBar: true, // must be deprecated. use layout.statusBar instead
autosave: true,
Expand Down
2 changes: 1 addition & 1 deletion apps/documenteditor/main/app/view/RightMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ define([
render: function (mode) {
this.trigger('render:before', this);

this.defaultHideRightMenu = mode.customization && !!mode.customization.hideRightMenu;
this.defaultHideRightMenu = !(mode.customization && (mode.customization.hideRightMenu===false));
var open = !Common.localStorage.getBool("de-hide-right-settings", this.defaultHideRightMenu);
Common.Utils.InternalSettings.set("de-hide-right-settings", !open);
this.$el.css('width', ((open) ? MENU_SCALE_PART : SCALE_MIN) + 'px');
Expand Down
2 changes: 1 addition & 1 deletion apps/presentationeditor/main/app/view/RightMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ define([

this.trigger('render:before', this);

this.defaultHideRightMenu = mode.customization && !!mode.customization.hideRightMenu;
this.defaultHideRightMenu = !(mode.customization && (mode.customization.hideRightMenu===false));
var open = !Common.localStorage.getBool("pe-hide-right-settings", this.defaultHideRightMenu);
Common.Utils.InternalSettings.set("pe-hide-right-settings", !open);
el.css('width', ((open) ? MENU_SCALE_PART : SCALE_MIN) + 'px');
Expand Down
2 changes: 1 addition & 1 deletion apps/spreadsheeteditor/main/app/view/RightMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ define([

this.trigger('render:before', this);

this.defaultHideRightMenu = mode.customization && !!mode.customization.hideRightMenu;
this.defaultHideRightMenu = !(mode.customization && (mode.customization.hideRightMenu===false));
var open = !Common.localStorage.getBool("sse-hide-right-settings", this.defaultHideRightMenu);
Common.Utils.InternalSettings.set("sse-hide-right-settings", !open);
el.css('width', ((open) ? MENU_SCALE_PART : SCALE_MIN) + 'px');
Expand Down

0 comments on commit 5842b71

Please sign in to comment.