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 4c5ee0e5a..5424524a8 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 @@ -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(