Fix for commit 493a464076139514852f37987030c6033f52983f#diff-bb3e95a7000e4ccdf55494a1ec8fe7b5. Enable invisible signature in the left menu when document has signatures.
This commit is contained in:
parent
823b33b4ca
commit
49b9cf1f9a
|
@ -111,7 +111,7 @@ define([
|
||||||
this.btnsDelPwd = [];
|
this.btnsDelPwd = [];
|
||||||
this.btnsChangePwd = [];
|
this.btnsChangePwd = [];
|
||||||
|
|
||||||
this._state = {disabled: false, hasPassword: false, disabledPassword: false};
|
this._state = {disabled: false, hasPassword: false, disabledPassword: false, invisibleSignDisabled: false};
|
||||||
|
|
||||||
var filter = Common.localStorage.getKeysFilter();
|
var filter = Common.localStorage.getKeysFilter();
|
||||||
this.appPrefix = (filter && filter.length) ? filter.split(',')[0] : '';
|
this.appPrefix = (filter && filter.length) ? filter.split(',')[0] : '';
|
||||||
|
@ -226,7 +226,7 @@ define([
|
||||||
cls: 'btn-text-default',
|
cls: 'btn-text-default',
|
||||||
style: 'width: 100%;',
|
style: 'width: 100%;',
|
||||||
caption: this.txtInvisibleSignature,
|
caption: this.txtInvisibleSignature,
|
||||||
disabled: this._state.disabled
|
disabled: this._state.invisibleSignDisabled
|
||||||
});
|
});
|
||||||
this.btnsInvisibleSignature.push(button);
|
this.btnsInvisibleSignature.push(button);
|
||||||
|
|
||||||
|
@ -269,6 +269,7 @@ define([
|
||||||
|
|
||||||
SetDisabled: function (state, canProtect) {
|
SetDisabled: function (state, canProtect) {
|
||||||
this._state.disabled = state;
|
this._state.disabled = state;
|
||||||
|
this._state.invisibleSignDisabled = state && !canProtect;
|
||||||
this.btnsInvisibleSignature && this.btnsInvisibleSignature.forEach(function(button) {
|
this.btnsInvisibleSignature && this.btnsInvisibleSignature.forEach(function(button) {
|
||||||
if ( button ) {
|
if ( button ) {
|
||||||
button.setDisabled(state && !canProtect);
|
button.setDisabled(state && !canProtect);
|
||||||
|
|
Loading…
Reference in a new issue