still have some bug about select file
This commit is contained in:
commit
ad32fe38ea
11 changed files with 325 additions and 130 deletions
|
|
@ -106,4 +106,20 @@ export class RecipeService {
|
|||
getRecipeFileNames(country: string): string[] {
|
||||
return this.recipeFiles[country];
|
||||
}
|
||||
|
||||
editChanges(version: string, change: any){
|
||||
console.log("target version = ", version);
|
||||
console.log("change in edit: ",change.value)
|
||||
return this._httpClient.post<{
|
||||
status: string
|
||||
}>(
|
||||
environment.api + ('/recipes/edit/'+version),
|
||||
change.value,
|
||||
{ withCredentials: true, responseType: 'json', }
|
||||
).subscribe({
|
||||
next(value) {
|
||||
console.log(value, change.value)
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue