[SSE] Fix Bug 53709, Bug 53654

This commit is contained in:
Julia Radzhabova 2021-11-16 16:56:34 +03:00
parent 06bf57e630
commit 526834c8e5
2 changed files with 9 additions and 4 deletions

View file

@ -98,6 +98,7 @@ define([
checked : false,
allowDepress: false,
disabled : false,
visible : true,
value : null,
toggleGroup : null,
iconCls : '',
@ -134,6 +135,7 @@ define([
this.checked = me.options.checked;
me.allowDepress = me.options.allowDepress;
this.disabled = me.options.disabled;
this.visible = me.options.visible;
this.value = me.options.value;
this.toggleGroup = me.options.toggleGroup;
this.template = me.options.template || this.template;
@ -229,6 +231,8 @@ define([
Common.UI.ToggleManager.register(me);
}
}
if (!this.visible)
this.setVisible(this.visible);
me.cmpEl = el;
me.rendered = true;

View file

@ -552,9 +552,8 @@ define([
iconTitle : name,
iconVisible : name!==''
};
var hidden = this.api.asc_isWorksheetHidden(i);
hidden ? hidentems.push(tab) : items.push(tab);
(!hidden || !wbprotected) && allItems.push(tab);
this.api.asc_isWorksheetHidden(i)? hidentems.push(tab) : items.push(tab);
allItems.push(tab);
}
if (hidentems.length) {
@ -571,13 +570,15 @@ define([
this.tabbar.add(items);
allItems.forEach(function(item){
var hidden = me.api.asc_isWorksheetHidden(item.sheetindex);
me.sheetListMenu.addItem(new Common.UI.MenuItem({
style: 'white-space: pre',
caption: Common.Utils.String.htmlEncode(item.label),
value: item.sheetindex,
checkable: true,
checked: item.active,
hidden: me.api.asc_isWorksheetHidden(item.sheetindex),
hidden: hidden,
visible: !hidden || !wbprotected,
textHidden: me.itemHidden,
template: _.template([
'<a id="<%= id %>" style="<%= style %>" tabindex="-1" type="menuitem" <% if (options.hidden) { %> data-hidden="true" <% } %>>',