add filter with material

This commit is contained in:
Kenta420 2023-10-27 16:13:04 +07:00
parent 5b01f1c431
commit 70cfd89fc4
9 changed files with 135 additions and 14 deletions

View file

@ -8,6 +8,7 @@ import { RecipeMetaData } from 'src/app/shared/types/recipe';
interface RecipeParams {
filename: string;
country: string;
materialIds: number[];
offset: number;
take: number;
search: string;
@ -31,6 +32,7 @@ export class RecipeService {
search: '',
country: this.getCurrentCountry(),
filename: this.getCurrentFile(),
materialIds: [],
}
): Observable<{
fileName: string;
@ -48,6 +50,7 @@ export class RecipeService {
search: params.search,
country: params.country,
filename: params.filename,
material_ids: params.materialIds.join(','),
},
withCredentials: true,
responseType: 'json',