diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/pdf-viewer/pdf-viewer.component.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/pdf-viewer/pdf-viewer.component.ts index 5424524a8..6037aa148 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/pdf-viewer/pdf-viewer.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/pdf-viewer/pdf-viewer.component.ts @@ -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(