some ui fix and debug input field, separate price field
This commit is contained in:
@@ -5,7 +5,6 @@ import { Component, computed, EventEmitter, Input, Output, signal } from '@angul
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { ButtonDirective, ButtonSeverity } from 'primeng/button';
|
||||
import { SharedLightBottomsheetComponent } from '../dialog/light-bottomsheet.component';
|
||||
import { FormFooterActionsComponent } from '../formFooterActions/form-footer-actions.component';
|
||||
|
||||
type SeasonKey = 0 | 1 | 2 | 3;
|
||||
|
||||
@@ -22,7 +21,6 @@ interface SeasonItem {
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
SharedLightBottomsheetComponent,
|
||||
FormFooterActionsComponent,
|
||||
ButtonDirective,
|
||||
UikitLabelComponent,
|
||||
],
|
||||
@@ -40,10 +38,11 @@ export class SeasonPickerDialogComponent extends AbstractDialog {
|
||||
|
||||
isSeasonDisabled = computed(() => this.selectedYear >= this.selectedYearDraft());
|
||||
|
||||
onSubmit(): void {
|
||||
selectSeason(season: SeasonItem) {
|
||||
this.selectedSeasonDraft.set(season.key);
|
||||
this.submit.emit({
|
||||
year: this.selectedYearDraft(),
|
||||
season: this.selectedSeasonDraft(),
|
||||
season: season.key,
|
||||
});
|
||||
this.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user