add filter with material
This commit is contained in:
parent
5b01f1c431
commit
70cfd89fc4
9 changed files with 135 additions and 14 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue