RED-10484: conditionally hide value placeholder.

This commit is contained in:
Nicoleta Panaghiu 2024-11-25 14:55:32 +02:00
parent 5fea526d6c
commit 4bd13949f6
2 changed files with 4 additions and 2 deletions

View File

@ -93,7 +93,7 @@
<div *ngIf="allRectangles" class="iqser-input-group w-450">
<label [translate]="'change-legal-basis-dialog.content.classification'"></label>
<input
[placeholder]="'edit-redaction.dialog.content.unchanged' | translate"
[placeholder]="isBulkEdit && !hideValuePlaceholder ? ('edit-redaction.dialog.content.unchanged' | translate) : ''"
formControlName="value"
name="classification"
type="text"

View File

@ -151,7 +151,9 @@ export class EditRedactionDialogComponent
get hideParagraphPlaceholder() {
return this.form.controls.section.value !== this.initialFormValue['section'] || this.#isFieldEmpty('section');
}
get hideValuePlaceholder() {
return this.form.controls.section.value !== this.initialFormValue['value'] || this.#isFieldEmpty('value');
}
get hiddenReason() {
return this.isImage && this.form.controls.reason.disabled;
}