basic instructions editor
This commit is contained in:
parent
47ffe8c74d
commit
e94be51f3e
10 changed files with 108 additions and 33 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue