mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-06 06:38:03 -05:00
added servings to url import
This commit is contained in:
@@ -60,6 +60,11 @@
|
||||
<label for="id_waiting_time">{% trans 'Waiting time ca.' %}</label>
|
||||
<input id="id_waiting_time" class="form-control" v-model="recipe_data.cookTime">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="id_servings">{% trans 'Servings' %}</label>
|
||||
<input id="id_servings" class="form-control" v-model="recipe_data.servings">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -304,6 +309,7 @@
|
||||
this.error = undefined
|
||||
this.loading = true
|
||||
this.$http.post("{% url 'api_recipe_from_url' %}", {'url': this.remote_url}, {emulateJSON: true}).then((response) => {
|
||||
console.log(response.data)
|
||||
this.recipe_data = response.data;
|
||||
this.loading = false
|
||||
}).catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user