[DE] Disable accepting/rejecting review changes when preview mail merge and in version history mode

This commit is contained in:
Julia Radzhabova 2019-02-04 16:43:25 +03:00
parent 910b187a81
commit 84b0419deb

View file

@ -135,6 +135,19 @@ define([
if (this.dlgChanges)
this.dlgChanges.close();
this.view && this.view.SetDisabled(state, this.langs);
this.setPreviewMode(state);
},
setPreviewMode: function(mode) { //disable accept/reject in popover
if (this.viewmode === mode) return;
this.viewmode = mode;
if (mode)
this.prevcanReview = this.appConfig.canReview;
this.appConfig.canReview = (mode) ? false : this.prevcanReview;
var me = this;
this.popoverChanges && this.popoverChanges.each(function (model) {
model.set('hint', !me.appConfig.canReview);
});
},
onApiShowChange: function (sdkchange) {