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)) { if (this._iqserPermissionsService.has(Roles.redactions.write)) {
popups.push({ if (!(this.#isDocumine && this._state.file().excludedFromAutomaticAnalysis)) {
type: 'actionButton', popups.push({
dataElement: TextPopups.REDACT_TEXT, type: 'actionButton',
img: this.#addRedactionIcon, dataElement: TextPopups.REDACT_TEXT,
title: this.#getTitle(ManualRedactionEntryTypes.REDACT), img: this.#addRedactionIcon,
onClick: () => this._ngZone.run(() => this.#redactText(ManualRedactionEntryTypes.REDACT)), title: this.#getTitle(ManualRedactionEntryTypes.REDACT),
}); onClick: () => this._ngZone.run(() => this.#redactText(ManualRedactionEntryTypes.REDACT)),
});
}
if (!this.#isDocumine) { if (!this.#isDocumine) {
popups.push({ popups.push({