RED-6240 - fix conflict
This commit is contained in:
parent
b33abddcc2
commit
8bd7e15319
@ -691,17 +691,17 @@ export class FilePreviewScreenComponent
|
||||
|
||||
this.addActiveScreenSubscription = combineLatest([this._viewModeService.viewMode$, this.state.file$, this._documentViewer.loaded$])
|
||||
.pipe(
|
||||
map(
|
||||
([viewMode, file]) => ['STANDARD', 'TEXT_HIGHLIGHTS'].includes(viewMode) && this.permissionsService.canRotatePage(file),
|
||||
),
|
||||
map(([viewMode, file]) => {
|
||||
if (viewMode === 'REDACTED' && !this._readableRedactionsService.active) {
|
||||
this._readableRedactionsService.setCustomDrawHandler();
|
||||
} else {
|
||||
this._readableRedactionsService.restoreDraw();
|
||||
}
|
||||
return ['STANDARD', 'TEXT_HIGHLIGHTS'].includes(viewMode) && this.permissionsService.canRotatePage(file);
|
||||
}),
|
||||
tap(canRotate =>
|
||||
canRotate ? this._viewerHeaderService.enableRotationButtons() : this._viewerHeaderService.disableRotationButtons(),
|
||||
),
|
||||
tap(viewMode =>
|
||||
viewMode === 'REDACTED' && !this._readableRedactionsService.active
|
||||
? this._readableRedactionsService.setCustomDrawHandler()
|
||||
: this._readableRedactionsService.restoreDraw(),
|
||||
),
|
||||
)
|
||||
.subscribe();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user