Merge branch 'RED-10484' into 'master'

RED-10484: conditionally hide value placeholder.

See merge request redactmanager/red-ui!725
This commit is contained in:
Nicoleta Panaghiu 2024-11-25 14:45:10 +01:00
commit 6ef4b981fc
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;
}