NIFI-13766: Fixed spacing of checkboxes in Prov Search Dialog. (#9284)

NIFI-13774: Accessed form controls using array notation in case the search field contains a dot.

This closes #9284
This commit is contained in:
Matt Gilman 2024-09-20 15:42:10 -04:00 committed by GitHub
parent e9577ded29
commit 729247976d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
<mat-label>{{ searchableField.label }}</mat-label>
<input matInput formControlName="value" type="text" />
</mat-form-field>
<div class="-mt-6 mb-4">
<div class="-mt-4 mb-4">
<mat-checkbox color="primary" formControlName="inverse" name="inverse"> Exclude</mat-checkbox>
</div>
</div>

View File

@ -242,7 +242,7 @@ export class ProvenanceSearchDialog extends CloseOnEscapeDialog {
const searchableFields: SearchableField[] = this.request.options.searchableFields;
searchableFields.forEach((searchableField) => {
// @ts-ignore
const searchableFieldForm: FormGroup = this.provenanceOptionsForm.get(searchableField.id);
const searchableFieldForm: FormGroup = this.provenanceOptionsForm.get([searchableField.id]);
if (searchableFieldForm) {
const searchableFieldValue: string = searchableFieldForm.get('value')?.value;
if (searchableFieldValue) {