Chore: Eslint v9
Chore: Angular Zoneless Chore: Removed Angular-Hotkeys dependency Fix: Localization works properly now Chore: Using Material 3 theme now Chore: Removed toaster service to use snackbar directly Fix: F2 Date working on all components now
This commit is contained in:
@ -65,8 +65,8 @@ import { RecipeListDatasource } from './recipe-list-datasource';
|
||||
],
|
||||
})
|
||||
export class RecipeListComponent implements OnInit {
|
||||
@ViewChild(MatPaginator, { static: true }) paginator?: MatPaginator;
|
||||
@ViewChild(MatSort, { static: true }) sort?: MatSort;
|
||||
@ViewChild(MatPaginator, { static: true }) paginator!: MatPaginator;
|
||||
@ViewChild(MatSort, { static: true }) sort!: MatSort;
|
||||
form: FormGroup<{
|
||||
period: FormControl<Period>;
|
||||
productGroup: FormControl<ProductGroup | string | null>;
|
||||
@ -75,10 +75,16 @@ export class RecipeListComponent implements OnInit {
|
||||
productGroups: ProductGroup[] = [];
|
||||
periods: Period[] = [];
|
||||
periodFilter: BehaviorSubject<Period> = new BehaviorSubject<Period>(new Period());
|
||||
productGroupFilter: BehaviorSubject<string> = new BehaviorSubject('');
|
||||
productGroupFilter = new BehaviorSubject<string>('');
|
||||
list: Recipe[] = [];
|
||||
data: BehaviorSubject<Recipe[]> = new BehaviorSubject<Recipe[]>([]);
|
||||
dataSource: RecipeListDatasource = new RecipeListDatasource(this.productGroupFilter, this.data);
|
||||
dataSource: RecipeListDatasource = new RecipeListDatasource(
|
||||
this.productGroupFilter,
|
||||
this.data,
|
||||
this.paginator,
|
||||
this.sort,
|
||||
);
|
||||
|
||||
period: Period = new Period();
|
||||
|
||||
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */
|
||||
|
||||
Reference in New Issue
Block a user