[DE] Bug 54504
This commit is contained in:
parent
bb7069283f
commit
ffadd710c4
|
@ -210,6 +210,7 @@ define([
|
||||||
this.dlgChanges.btnReject.setDisabled(btnlock);
|
this.dlgChanges.btnReject.setDisabled(btnlock);
|
||||||
}
|
}
|
||||||
this._state.lock = btnlock;
|
this._state.lock = btnlock;
|
||||||
|
Common.Utils.InternalSettings.set(this.view.appPrefix + "accept-reject-lock", btnlock);
|
||||||
}
|
}
|
||||||
this._state.posx = posX;
|
this._state.posx = posX;
|
||||||
this._state.posy = posY;
|
this._state.posy = posY;
|
||||||
|
|
|
@ -524,8 +524,8 @@ define([
|
||||||
me.btnCompare.updateHint(me.tipCompare);
|
me.btnCompare.updateHint(me.tipCompare);
|
||||||
}
|
}
|
||||||
|
|
||||||
me.btnAccept.setDisabled(config.isReviewOnly);
|
config.isReviewOnly && me.btnAccept.setDisabled(true);
|
||||||
me.btnReject.setDisabled(config.isReviewOnly);
|
config.isReviewOnly && me.btnReject.setDisabled(true);
|
||||||
}
|
}
|
||||||
if (me.appConfig.canViewReview) {
|
if (me.appConfig.canViewReview) {
|
||||||
me.btnPrev.updateHint(me.hintPrev);
|
me.btnPrev.updateHint(me.hintPrev);
|
||||||
|
@ -946,6 +946,9 @@ define([
|
||||||
this.popoverChanges = this.options.popoverChanges;
|
this.popoverChanges = this.options.popoverChanges;
|
||||||
this.mode = this.options.mode;
|
this.mode = this.options.mode;
|
||||||
|
|
||||||
|
var filter = Common.localStorage.getKeysFilter();
|
||||||
|
this.appPrefix = (filter && filter.length) ? filter.split(',')[0] : '';
|
||||||
|
|
||||||
Common.UI.Window.prototype.initialize.call(this, this.options);
|
Common.UI.Window.prototype.initialize.call(this, this.options);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -972,7 +975,7 @@ define([
|
||||||
cls : 'btn-toolbar',
|
cls : 'btn-toolbar',
|
||||||
caption : this.txtAccept,
|
caption : this.txtAccept,
|
||||||
split : true,
|
split : true,
|
||||||
disabled : this.mode.isReviewOnly,
|
disabled : this.mode.isReviewOnly || !!Common.Utils.InternalSettings.get(this.appPrefix + "accept-reject-lock"),
|
||||||
menu : this.mode.canUseReviewPermissions ? false : new Common.UI.Menu({
|
menu : this.mode.canUseReviewPermissions ? false : new Common.UI.Menu({
|
||||||
items: [
|
items: [
|
||||||
this.mnuAcceptCurrent = new Common.UI.MenuItem({
|
this.mnuAcceptCurrent = new Common.UI.MenuItem({
|
||||||
|
@ -992,7 +995,7 @@ define([
|
||||||
cls : 'btn-toolbar',
|
cls : 'btn-toolbar',
|
||||||
caption : this.txtReject,
|
caption : this.txtReject,
|
||||||
split : true,
|
split : true,
|
||||||
disabled : this.mode.isReviewOnly,
|
disabled : this.mode.isReviewOnly || !!Common.Utils.InternalSettings.get(this.appPrefix + "accept-reject-lock"),
|
||||||
menu : this.mode.canUseReviewPermissions ? false : new Common.UI.Menu({
|
menu : this.mode.canUseReviewPermissions ? false : new Common.UI.Menu({
|
||||||
items: [
|
items: [
|
||||||
this.mnuRejectCurrent = new Common.UI.MenuItem({
|
this.mnuRejectCurrent = new Common.UI.MenuItem({
|
||||||
|
|
Loading…
Reference in a new issue