Feature: Adding recipe templates to print recipes.
Feautre: Recipe export to xlsx Chore: Python 11 style type annotations Chore: Moved to sqlalchemy 2.0 Chore: Minimum python is 3.11 Fix: Fix nullability of a lot of fields in the database.
This commit is contained in:
@ -33,7 +33,7 @@ export class RecipeListComponent implements OnInit {
|
||||
dataSource: RecipeListDatasource = new RecipeListDatasource(this.productGroupFilter, this.data);
|
||||
|
||||
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */
|
||||
displayedColumns = ['name', 'salePrice', 'costPrice', 'costPercentage'];
|
||||
displayedColumns = ['name', 'yield', 'date', 'source'];
|
||||
|
||||
constructor(private route: ActivatedRoute, private router: Router) {
|
||||
this.form = new FormGroup({
|
||||
@ -77,4 +77,8 @@ export class RecipeListComponent implements OnInit {
|
||||
filterProductGroup(val: string) {
|
||||
this.productGroupFilter.next(val || '');
|
||||
}
|
||||
|
||||
excelLink() {
|
||||
return `/api/recipes/xlsx`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user