show rotation controls when file is disabled

This commit is contained in:
Dan Percic 2022-03-15 10:20:44 +02:00
parent 752a7670d5
commit ca0289e342

View File

@ -626,8 +626,6 @@ export class PdfViewerComponent extends AutoUnsubscribe implements OnInit, OnCha
TextPopups.ADD_FALSE_POSITIVE,
HeaderElements.SHAPE_TOOL_GROUP_BUTTON,
HeaderElements.ANNOTATION_POPUP,
HeaderElements.ROTATE_LEFT_BUTTON,
HeaderElements.ROTATE_RIGHT_BUTTON,
];
const isCurrentPageExcluded = this.pdf.isCurrentPageExcluded(await this.stateService.file);
@ -647,12 +645,7 @@ export class PdfViewerComponent extends AutoUnsubscribe implements OnInit, OnCha
return;
}
let elementsToDisable = [
...elementsToToggle,
TextPopups.ADD_RECTANGLE,
HeaderElements.APPLY_ROTATION,
HeaderElements.DISCARD_ROTATION,
];
let elementsToDisable = [...elementsToToggle, TextPopups.ADD_RECTANGLE];
if (isCurrentPageExcluded) {
const allowedActionsWhenPageExcluded: string[] = [
@ -667,7 +660,6 @@ export class PdfViewerComponent extends AutoUnsubscribe implements OnInit, OnCha
}
this.instance.UI.disableElements(elementsToDisable);
this._pageRotationService.discardRotation();
}
private _getManualRedaction(