|
|
@ -10,7 +10,12 @@ import { |
|
|
inject |
|
|
inject |
|
|
} from '@angular/core'; |
|
|
} from '@angular/core'; |
|
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; |
|
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; |
|
|
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'; |
|
|
import { |
|
|
|
|
|
FormControl, |
|
|
|
|
|
FormGroup, |
|
|
|
|
|
FormsModule, |
|
|
|
|
|
ReactiveFormsModule |
|
|
|
|
|
} from '@angular/forms'; |
|
|
import { MatButtonModule } from '@angular/material/button'; |
|
|
import { MatButtonModule } from '@angular/material/button'; |
|
|
import { DateAdapter, MAT_DATE_LOCALE } from '@angular/material/core'; |
|
|
import { DateAdapter, MAT_DATE_LOCALE } from '@angular/material/core'; |
|
|
import { MatDatepickerModule } from '@angular/material/datepicker'; |
|
|
import { MatDatepickerModule } from '@angular/material/datepicker'; |
|
|
@ -51,7 +56,10 @@ export class GfHistoricalMarketDataEditorDialogComponent implements OnInit { |
|
|
inject<HistoricalMarketDataEditorDialogParams>(MAT_DIALOG_DATA); |
|
|
inject<HistoricalMarketDataEditorDialogParams>(MAT_DIALOG_DATA); |
|
|
|
|
|
|
|
|
public readonly form = new FormGroup({ |
|
|
public readonly form = new FormGroup({ |
|
|
dateString: new FormControl<string | null>({ value: this.data.dateString, disabled: true }), |
|
|
dateString: new FormControl<string | null>({ |
|
|
|
|
|
value: this.data.dateString, |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}), |
|
|
marketPrice: new FormControl<number | undefined>(this.data.marketPrice) |
|
|
marketPrice: new FormControl<number | undefined>(this.data.marketPrice) |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|