[DE] Hide "Display Mode" button for review changes when document is opened in fill forms or commenting mode (use "Markup" option - show all review changes)
This commit is contained in:
parent
67dd8e1379
commit
128411ba08
|
@ -649,7 +649,7 @@ define([
|
||||||
});
|
});
|
||||||
} else if (config.canViewReview) {
|
} else if (config.canViewReview) {
|
||||||
config.canViewReview = me.api.asc_HaveRevisionsChanges(true); // check revisions from all users
|
config.canViewReview = me.api.asc_HaveRevisionsChanges(true); // check revisions from all users
|
||||||
config.canViewReview && me.turnDisplayMode(Common.localStorage.getItem(me.view.appPrefix + "review-mode") || 'original'); // load display mode only in viewer
|
config.canViewReview && me.turnDisplayMode(config.isRestrictedEdit ? 'markup' : Common.localStorage.getItem(me.view.appPrefix + "review-mode") || 'original'); // load display mode only in viewer
|
||||||
}
|
}
|
||||||
|
|
||||||
if (me.view && me.view.btnChat) {
|
if (me.view && me.view.btnChat) {
|
||||||
|
|
|
@ -128,7 +128,7 @@ define([
|
||||||
me.fireEvent('reviewchange:preview', [me.btnNext, 'next']);
|
me.fireEvent('reviewchange:preview', [me.btnNext, 'next']);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.btnReviewView.menu.on('item:click', function (menu, item, e) {
|
this.btnReviewView && this.btnReviewView.menu.on('item:click', function (menu, item, e) {
|
||||||
me.fireEvent('reviewchanges:view', [menu, item]);
|
me.fireEvent('reviewchanges:view', [menu, item]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -209,6 +209,7 @@ define([
|
||||||
caption: this.txtNext
|
caption: this.txtNext
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!this.appConfig.isRestrictedEdit) // hide Display mode option for fillForms and commenting mode
|
||||||
this.btnReviewView = new Common.UI.Button({
|
this.btnReviewView = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'btn-ic-reviewview',
|
iconCls: 'btn-ic-reviewview',
|
||||||
|
@ -318,7 +319,7 @@ define([
|
||||||
me.btnPrev.updateHint(me.hintPrev);
|
me.btnPrev.updateHint(me.hintPrev);
|
||||||
me.btnNext.updateHint(me.hintNext);
|
me.btnNext.updateHint(me.hintNext);
|
||||||
|
|
||||||
me.btnReviewView.setMenu(
|
me.btnReviewView && me.btnReviewView.setMenu(
|
||||||
new Common.UI.Menu({
|
new Common.UI.Menu({
|
||||||
cls: 'ppm-toolbar',
|
cls: 'ppm-toolbar',
|
||||||
items: [
|
items: [
|
||||||
|
@ -351,7 +352,7 @@ define([
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}));
|
}));
|
||||||
me.btnReviewView.updateHint(me.tipReviewView);
|
me.btnReviewView && me.btnReviewView.updateHint(me.tipReviewView);
|
||||||
!me.appConfig.canReview && me.turnDisplayMode(Common.localStorage.getItem(me.appPrefix + "review-mode") || 'original');
|
!me.appConfig.canReview && me.turnDisplayMode(Common.localStorage.getItem(me.appPrefix + "review-mode") || 'original');
|
||||||
}
|
}
|
||||||
me.btnSharing && me.btnSharing.updateHint(me.tipSharing);
|
me.btnSharing && me.btnSharing.updateHint(me.tipSharing);
|
||||||
|
|
Loading…
Reference in a new issue