basic instructions editor

This commit is contained in:
Anika Raemer 2025-10-11 07:32:50 +02:00
parent 47ffe8c74d
commit e94be51f3e
10 changed files with 108 additions and 33 deletions

View file

@ -2,6 +2,7 @@ import { UUID } from "crypto";
import { AbstractDto } from "./AbstractDto.ts";
export class RecipeInstructionStepDto extends AbstractDto{
id?: string;
text!: string;
sortOrder!: number;
recipeId?: UUID;

View file

@ -19,7 +19,7 @@ const RECIPE_URL = `${BASE_URL}/compact-recipe`
* @returns Array of recipe
*/
export async function fetchRecipeList(searchString : string): Promise<RecipeModel[]> {
let url : string = RECIPE_URL;
let url : string = RECIPE_URL; // add an s to the base URL as we want to load a list
// if there's a search string add it as query parameter
if(searchString && searchString !== ""){
url +="?search=" + searchString;