[PE][SSE] Hide signatures in the right panel when password protect is enabled
This commit is contained in:
parent
ff633b1712
commit
ccf95bc87a
|
@ -179,7 +179,7 @@ define([
|
|||
this.shapeSettings = new PE.Views.ShapeSettings();
|
||||
this.textartSettings = new PE.Views.TextArtSettings();
|
||||
|
||||
if (mode && mode.canProtect) {
|
||||
if (mode && mode.isSignatureSupport) {
|
||||
this.btnSignature = new Common.UI.Button({
|
||||
hint: this.txtSignatureSettings,
|
||||
asctype: Common.Utils.documentSettingsType.Signature,
|
||||
|
|
|
@ -1461,7 +1461,7 @@ define([
|
|||
documentHolder.mnuImgAdvanced.imageInfo = elValue;
|
||||
isimagemenu = true;
|
||||
}
|
||||
if (this.permissions.canProtect)
|
||||
if (this.permissions.isSignatureSupport)
|
||||
signGuid = elValue.asc_getSignatureId();
|
||||
}
|
||||
}
|
||||
|
@ -1702,7 +1702,7 @@ define([
|
|||
|
||||
if (!showMenu && !documentHolder.viewModeMenu.isVisible()) return;
|
||||
|
||||
if (isimagemenu && this.permissions.canProtect) {
|
||||
if (isimagemenu && this.permissions.isSignatureSupport) {
|
||||
var selectedObjects = this.api.asc_getGraphicObjectProps();
|
||||
for (var i = 0; i < selectedObjects.length; i++) {
|
||||
if (selectedObjects[i].asc_getObjectType() == Asc.c_oAscTypeSelectElement.Image) {
|
||||
|
|
|
@ -195,22 +195,7 @@ define([
|
|||
this.pivotSettings = new SSE.Views.PivotSettings();
|
||||
this.cellSettings = new SSE.Views.CellSettings();
|
||||
|
||||
if (mode && mode.canProtect) {
|
||||
this.btnSignature = new Common.UI.Button({
|
||||
hint: this.txtSignatureSettings,
|
||||
asctype: Common.Utils.documentSettingsType.Signature,
|
||||
enableToggle: true,
|
||||
disabled: true,
|
||||
toggleGroup: 'tabpanelbtnsGroup'
|
||||
});
|
||||
this._settings[Common.Utils.documentSettingsType.Signature] = {panel: "id-signature-settings", btn: this.btnSignature};
|
||||
|
||||
this.btnSignature.el = $('#id-right-menu-signature'); this.btnSignature.render().setVisible(true);
|
||||
this.btnSignature.on('click', _.bind(this.onBtnMenuClick, this));
|
||||
this.signatureSettings = new SSE.Views.SignatureSettings();
|
||||
}
|
||||
|
||||
if (mode && mode.canProtect) {
|
||||
if (mode && mode.isSignatureSupport) {
|
||||
this.btnSignature = new Common.UI.Button({
|
||||
hint: this.txtSignatureSettings,
|
||||
asctype: Common.Utils.documentSettingsType.Signature,
|
||||
|
|
Loading…
Reference in a new issue