RED-8375: disabled actions when both page and file are excluded.

This commit is contained in:
Nicoleta Panaghiu 2024-01-31 10:35:48 +02:00
parent 8e69010364
commit 6a118f2514

View File

@ -229,6 +229,11 @@ export class PdfProxyService {
return; return;
} }
if (this._state.file().excludedFromAutomaticAnalysis) {
this.#disableActions();
return;
}
let textPopupElementsToDisable = [...TEXT_POPUPS_TO_TOGGLE]; let textPopupElementsToDisable = [...TEXT_POPUPS_TO_TOGGLE];
let headerElementsToDisable = [...HEADER_ITEMS_TO_TOGGLE]; let headerElementsToDisable = [...HEADER_ITEMS_TO_TOGGLE];