hide apply&discard rotations when file is disabled
This commit is contained in:
parent
5818acca45
commit
4cced2998f
@ -647,7 +647,12 @@ export class PdfViewerComponent extends AutoUnsubscribe implements OnInit, OnCha
|
||||
return;
|
||||
}
|
||||
|
||||
let elementsToDisable = [...elementsToToggle, TextPopups.ADD_RECTANGLE];
|
||||
let elementsToDisable = [
|
||||
...elementsToToggle,
|
||||
TextPopups.ADD_RECTANGLE,
|
||||
HeaderElements.APPLY_ROTATION,
|
||||
HeaderElements.DISCARD_ROTATION,
|
||||
];
|
||||
|
||||
if (isCurrentPageExcluded) {
|
||||
const allowedActionsWhenPageExcluded: string[] = [
|
||||
@ -662,6 +667,7 @@ export class PdfViewerComponent extends AutoUnsubscribe implements OnInit, OnCha
|
||||
}
|
||||
|
||||
this.instance.UI.disableElements(elementsToDisable);
|
||||
this._pageRotationService.discardRotation();
|
||||
}
|
||||
|
||||
private _getManualRedaction(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user