[DE] Hide edit-mode button from toolbar

This commit is contained in:
Julia Radzhabova
2024-09-01 19:11:31 +03:00
parent 96433adfa2
commit 45848d891d
3 changed files with 22 additions and 22 deletions

View File

@ -273,9 +273,9 @@ define([
toolbar.btnSelectAll.on('click', _.bind(this.onSelectAll, this));
toolbar.btnSelectTool.on('toggle', _.bind(this.onSelectTool, this, 'select'));
toolbar.btnHandTool.on('toggle', _.bind(this.onSelectTool, this, 'hand'));
toolbar.btnEditMode.on('click', function (btn, e) {
Common.Gateway.requestEditRights();
});
// toolbar.btnEditMode.on('click', function (btn, e) {
// Common.Gateway.requestEditRights();
// });
Common.NotificationCenter.on('leftmenu:save', _.bind(this.tryToSave, this));
this.onBtnChangeState('undo:disabled', toolbar.btnUndo, toolbar.btnUndo.isDisabled());
this.onBtnChangeState('redo:disabled', toolbar.btnRedo, toolbar.btnRedo.isDisabled());
@ -3559,8 +3559,8 @@ define([
me.toolbar.btnSave.on('disabled', _.bind(me.onBtnChangeState, me, 'save:disabled'));
if (!(me.mode.canRequestEditRights && me.mode.isPDFForm && me.mode.canFillForms && me.mode.isRestrictedEdit))
me.toolbar.btnEditMode && me.toolbar.btnEditMode.cmpEl.parents('.group').hide().next('.separator').hide();
// if (!(me.mode.canRequestEditRights && me.mode.isPDFForm && me.mode.canFillForms && me.mode.isRestrictedEdit))
// me.toolbar.btnEditMode && me.toolbar.btnEditMode.cmpEl.parents('.group').hide().next('.separator').hide();
if (!config.compactHeader) {
// hide 'print' and 'save' buttons group and next separator

View File

@ -36,10 +36,10 @@
</div>
</div>
<div class="separator long"></div>
<div class="group">
<span class="btn-slot text x-huge" id="slot-btn-tb-edit-mode"></span>
</div>
<div class="separator long"></div>
<!-- <div class="group">-->
<!-- <span class="btn-slot text x-huge" id="slot-btn-tb-edit-mode"></span>-->
<!-- </div>-->
<!-- <div class="separator long"></div>-->
<div class="group">
<span class="btn-slot text x-huge" id="slot-btn-hand-tool"></span>
<span class="btn-slot text x-huge" id="slot-btn-select-tool"></span>

View File

@ -1891,17 +1891,17 @@ define([
});
this.toolbarControls.push(this.btnHandTool);
this.btnEditMode = new Common.UI.Button({
cls: 'btn-toolbar x-huge icon-top',
iconCls: 'toolbar__icon btn-edit-text',
style: 'min-width: 45px;',
lock: [_set.lostConnect, _set.disableOnStart],
caption: this.textEditMode,
dataHint: '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'
});
this.toolbarControls.push(this.btnEditMode);
// this.btnEditMode = new Common.UI.Button({
// cls: 'btn-toolbar x-huge icon-top',
// iconCls: 'toolbar__icon btn-edit-text',
// style: 'min-width: 45px;',
// lock: [_set.lostConnect, _set.disableOnStart],
// caption: this.textEditMode,
// dataHint: '1',
// dataHintDirection: 'bottom',
// dataHintOffset: 'small'
// });
// this.toolbarControls.push(this.btnEditMode);
this.lockControls = this.toolbarControls.concat(this.paragraphControls);
this.lockToolbar(Common.enumLock.disableOnStart, true, {array: this.lockControls});
@ -1993,7 +1993,7 @@ define([
_injectComponent('#slot-btn-select-all', this.btnSelectAll);
_injectComponent('#slot-btn-select-tool', this.btnSelectTool);
_injectComponent('#slot-btn-hand-tool', this.btnHandTool);
_injectComponent('#slot-btn-tb-edit-mode', this.btnEditMode);
// _injectComponent('#slot-btn-tb-edit-mode', this.btnEditMode);
return $host;
},
@ -2412,7 +2412,7 @@ define([
this.btnSelectAll.updateHint(this.tipSelectAll + Common.Utils.String.platformKey('Ctrl+A'));
this.btnSelectTool.updateHint(this.tipSelectTool);
this.btnHandTool.updateHint(this.tipHandTool);
this.btnEditMode.updateHint(this.tipEditMode, true);
// this.btnEditMode.updateHint(this.tipEditMode, true);
},
createDelayedElements: function () {