Browse Source

Clean up historical market data editor dialog

Remove the name attributes from the inputs bound via formControlName and
add a line break after setting the fetched market price.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pull/7933/head
yar01110 3 weeks ago
parent
commit
13c2e95487
  1. 1
      libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.component.ts
  2. 14
      libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html

1
libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.component.ts

@ -93,6 +93,7 @@ export class GfHistoricalMarketDataEditorDialogComponent implements OnInit {
this.historicalMarketDataForm.controls.marketPrice.setValue(
marketPrice
);
this.historicalMarketDataForm.controls.marketPrice.markAsDirty();
this.changeDetectorRef.markForCheck();

14
libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html

@ -8,12 +8,7 @@
<div class="mb-3">
<mat-form-field appearance="outline" class="w-100">
<mat-label i18n>Date</mat-label>
<input
formControlName="date"
matInput
name="date"
[matDatepicker]="date"
/>
<input formControlName="date" matInput [matDatepicker]="date" />
<mat-datepicker-toggle class="mr-2" matSuffix [for]="date">
<ion-icon
class="text-muted"
@ -27,12 +22,7 @@
<div class="align-items-start d-flex">
<mat-form-field appearance="outline" class="w-100">
<mat-label i18n>Market Price</mat-label>
<input
formControlName="marketPrice"
matInput
name="marketPrice"
type="number"
/>
<input formControlName="marketPrice" matInput type="number" />
<span class="ml-2" matTextSuffix>{{ data.currency }}</span>
</mat-form-field>
<button

Loading…
Cancel
Save