[SSE] skip of creating unusable buttons

This commit is contained in:
Maxim Kadushkin 2019-11-21 19:18:15 +03:00
parent aa48aca058
commit 59eaff38b6

View file

@ -66,12 +66,13 @@ define([
me.btnTextToColumns.on('click', function (b, e) { me.btnTextToColumns.on('click', function (b, e) {
me.fireEvent('data:tocolumns'); me.fireEvent('data:tocolumns');
}); });
me.btnShow.on('click', function (b, e) { // isn't used for awhile
me.fireEvent('data:show'); // me.btnShow.on('click', function (b, e) {
}); // me.fireEvent('data:show');
me.btnHide.on('click', function (b, e) { // });
me.fireEvent('data:hide'); // me.btnHide.on('click', function (b, e) {
}); // me.fireEvent('data:hide');
// });
me.btnsSortDown.forEach(function(button) { me.btnsSortDown.forEach(function(button) {
button.on('click', function (b, e) { button.on('click', function (b, e) {
me.fireEvent('data:sort', [Asc.c_oAscSortOptions.Ascending]); me.fireEvent('data:sort', [Asc.c_oAscSortOptions.Ascending]);
@ -142,25 +143,25 @@ define([
Common.Utils.injectComponent($host.find('#slot-btn-text-column'), this.btnTextToColumns); Common.Utils.injectComponent($host.find('#slot-btn-text-column'), this.btnTextToColumns);
this.lockedControls.push(this.btnTextToColumns); this.lockedControls.push(this.btnTextToColumns);
this.btnShow = new Common.UI.Button({ // this.btnShow = new Common.UI.Button({
cls : 'btn-toolbar', // cls : 'btn-toolbar',
iconCls : 'btn-show-details', // iconCls : 'btn-show-details',
style: 'padding-right: 2px;', // style: 'padding-right: 2px;',
caption: this.capBtnTextShow, // caption: this.capBtnTextShow,
lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth] // lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth]
}); // });
Common.Utils.injectComponent($host.find('#slot-btn-show-details'), this.btnShow); // Common.Utils.injectComponent($host.find('#slot-btn-show-details'), this.btnShow);
this.lockedControls.push(this.btnShow); // this.lockedControls.push(this.btnShow);
this.btnHide = new Common.UI.Button({ // this.btnHide = new Common.UI.Button({
cls : 'btn-toolbar', // cls : 'btn-toolbar',
iconCls : 'btn-hide-details', // iconCls : 'btn-hide-details',
style: 'padding-right: 2px;', // style: 'padding-right: 2px;',
caption: this.capBtnTextHide, // caption: this.capBtnTextHide,
lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth] // lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth]
}); // });
Common.Utils.injectComponent($host.find('#slot-btn-hide-details'), this.btnHide); // Common.Utils.injectComponent($host.find('#slot-btn-hide-details'), this.btnHide);
this.lockedControls.push(this.btnHide); // this.lockedControls.push(this.btnHide);
this.btnsSortDown = Common.Utils.injectButtons($host.find('.slot-sortdesc'), '', 'toolbar__icon btn-sort-down', '', this.btnsSortDown = Common.Utils.injectButtons($host.find('.slot-sortdesc'), '', 'toolbar__icon btn-sort-down', '',
[_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter, _set.editPivot, _set.cantModifyFilter]); [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.ruleFilter, _set.editPivot, _set.cantModifyFilter]);