RED-8375: fixed actions for documine.

This commit is contained in:
Nicoleta Panaghiu 2024-01-26 16:08:58 +02:00
parent c0bd129b5c
commit be25253ee7

View File

@ -99,7 +99,6 @@ export class PdfProxyService {
this._pdf.isCompareMode();
this.#configureTextPopup();
this.#handleExcludedPageActions();
if (canPerformActions) {
this.#enableActions();
@ -107,6 +106,8 @@ export class PdfProxyService {
this.#disableActions();
this.#deactivateMultiSelect();
}
this.#handleExcludedPageActions();
},
{ allowSignalWrites: true },
);
@ -231,7 +232,7 @@ export class PdfProxyService {
let textPopupElementsToDisable = [...TEXT_POPUPS_TO_TOGGLE];
let headerElementsToDisable = [...HEADER_ITEMS_TO_TOGGLE];
if (this.canPerformActions()) {
if (this.canPerformActions() && !this.#isDocumine) {
this._pdf.enable(ALLOWED_ACTIONS_WHEN_PAGE_EXCLUDED);
this._viewerHeaderService.enable(ALLOWED_ACTIONS_WHEN_PAGE_EXCLUDED as HeaderElementType[]);