-
-
-
-
-
+
+
+
+
+
diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.scss b/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.scss
index bba70f9c4..88048539d 100644
--- a/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.scss
+++ b/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.scss
@@ -1,5 +1,12 @@
@use 'common-mixins';
+.dialog-content {
+ &.fixed-height {
+ height: 386px;
+ overflow-y: auto;
+ }
+}
+
cdk-virtual-scroll-viewport {
margin-top: 8px;
@include common-mixins.scroll-bar;
diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.ts
index 4914f9ad5..ad7b9d730 100644
--- a/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.ts
+++ b/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.ts
@@ -10,8 +10,6 @@ import { getEditRedactionOptions, RedactOrHintOption } from '../../utils/dialog-
import { EditRedactionData, EditRedactResult } from '../../utils/dialog-types';
import { LegalBasisOption } from '../manual-redaction-dialog/manual-annotation-dialog.component';
-const SIGNATURE = 'signature';
-
@Component({
templateUrl: './edit-redaction-dialog.component.html',
styleUrls: ['./edit-redaction-dialog.component.scss'],
@@ -59,15 +57,13 @@ export class EditRedactionDialogComponent
}
get showExtras() {
- const type = this.form.get('type').value;
- const isSignature = type === SIGNATURE;
- return (isSignature && this.isRedacted) || !(this.isImage || this.isHint);
+ return (this.isImage && this.isRedacted) || !(this.isImage || this.isHint);
}
get disabled() {
return (
this.form.invalid ||
- (this.showExtras && (!this.allSkipped || this.isRedactBasedType) ? !this.form.controls.reason.value : false)
+ (!this.isImage && this.showExtras && (!this.allSkipped || this.isRedactBasedType) ? !this.form.controls.reason.value : false)
);
}
@@ -114,13 +110,9 @@ export class EditRedactionDialogComponent
typeChanged() {
const selectedDictionaryType = this.form.controls.type.value;
- const isSignature = selectedDictionaryType === SIGNATURE;
this.#setOptions(selectedDictionaryType);
- if (this.redactBasedTypes.includes(selectedDictionaryType) || (isSignature && !this.allSkipped)) {
- if (isSignature) {
- this.form.patchValue({ reason: this.initialFormValue.reason, option: this.initialFormValue.option });
- }
+ if (this.redactBasedTypes.includes(selectedDictionaryType)) {
this.form.controls.reason.enable();
this.hasTypeChanged = true;
} else {
@@ -177,4 +169,8 @@ export class EditRedactionDialogComponent
value: new FormControl(this.allRectangles ? this.data.annotations[0].value : null),
});
}
+
+ get hiddenReason() {
+ return this.isImage && this.form.controls.reason.disabled;
+ }
}