DM-588 - Do not allow any annotations or annotation changes while auto-analysis is disabled

This commit is contained in:
Valentin Mihai 2023-12-07 13:54:15 +02:00
parent 88d35436ad
commit 427dfa23e8

View File

@ -184,13 +184,15 @@ export class PdfProxyService {
}
if (this._iqserPermissionsService.has(Roles.redactions.write)) {
popups.push({
type: 'actionButton',
dataElement: TextPopups.REDACT_TEXT,
img: this.#addRedactionIcon,
title: this.#getTitle(ManualRedactionEntryTypes.REDACT),
onClick: () => this._ngZone.run(() => this.#redactText(ManualRedactionEntryTypes.REDACT)),
});
if (!(this.#isDocumine && this._state.file().excludedFromAutomaticAnalysis)) {
popups.push({
type: 'actionButton',
dataElement: TextPopups.REDACT_TEXT,
img: this.#addRedactionIcon,
title: this.#getTitle(ManualRedactionEntryTypes.REDACT),
onClick: () => this._ngZone.run(() => this.#redactText(ManualRedactionEntryTypes.REDACT)),
});
}
if (!this.#isDocumine) {
popups.push({