[DE] Lock protect tab

This commit is contained in:
Julia Radzhabova 2021-12-30 12:10:23 +03:00
parent e7e077c76d
commit 0c1668aecc
5 changed files with 13 additions and 5 deletions

View file

@ -791,7 +791,8 @@ define([
viewport: false, viewport: false,
documentHolder: true, documentHolder: true,
toolbar: true, toolbar: true,
plugins: true plugins: true,
protect: true
}, 'review'); }, 'review');
// if (this.view) { // if (this.view) {

View file

@ -310,7 +310,8 @@ define([
viewport: false, viewport: false,
documentHolder: true, documentHolder: true,
toolbar: true, toolbar: true,
plugins: false plugins: false,
protect: true
}, 'forms'); }, 'forms');
if (this.view) if (this.view)
this.view.$el.find('.no-group-mask.form-view').css('opacity', 1); this.view.$el.find('.no-group-mask.form-view').css('opacity', 1);

View file

@ -751,7 +751,8 @@ define([
viewport: true, viewport: true,
documentHolder: true, documentHolder: true,
toolbar: true, toolbar: true,
plugins: false plugins: false,
protect: false
}, temp ? 'reconnect' : 'disconnect'); }, temp ? 'reconnect' : 'disconnect');
}, },
@ -805,6 +806,9 @@ define([
if (options.plugins) { if (options.plugins) {
app.getController('Common.Controllers.Plugins').getView('Common.Views.Plugins').disableControls(disable); app.getController('Common.Controllers.Plugins').getView('Common.Views.Plugins').disableControls(disable);
} }
if (options.protect) {
app.getController('Common.Controllers.Protection').SetDisabled(disable, false);
}
if (prev_options) { if (prev_options) {
this.onEditingDisable(prev_options.disable, prev_options.options, prev_options.type); this.onEditingDisable(prev_options.disable, prev_options.options, prev_options.type);

View file

@ -855,7 +855,8 @@ define([
viewport: false, viewport: false,
documentHolder: true, documentHolder: true,
toolbar: true, toolbar: true,
plugins: false plugins: false,
protect: false
}, 'mailmerge'); }, 'mailmerge');
this.lockControls(DE.enumLockMM.preview, disable, {array: [this.btnInsField, this.btnEditData]}); this.lockControls(DE.enumLockMM.preview, disable, {array: [this.btnInsField, this.btnEditData]});

View file

@ -411,7 +411,8 @@ define([
viewport: false, viewport: false,
documentHolder: true, documentHolder: true,
toolbar: true, toolbar: true,
plugins: false plugins: false,
protect: false
}, 'signature'); }, 'signature');
} }
}, },