allow users to choose between food and recipe properties

This commit is contained in:
vabene1111
2023-05-26 15:59:49 +02:00
parent aeb944b281
commit 7af581f0ff
2 changed files with 70 additions and 9 deletions

View File

@ -137,7 +137,7 @@
<div class="row" style="margin-top: 2vh; ">
<div class="col-lg-6 offset-lg-3 col-12">
<food-property-view-component :recipe="recipe" :servings="servings" @foodUpdated="loadRecipe(recipe.id)"></food-property-view-component>
<property-view-component :recipe="recipe" :servings="servings" @foodUpdated="loadRecipe(recipe.id)"></property-view-component>
</div>
</div>
</div>
@ -184,7 +184,7 @@ import CustomInputSpinButton from "@/components/CustomInputSpinButton"
import {ApiApiFactory} from "@/utils/openapi/api";
import ImportTandoor from "@/components/Modals/ImportTandoor.vue";
import BottomNavigationBar from "@/components/BottomNavigationBar.vue";
import FoodPropertyViewComponent from "@/components/FoodPropertyViewComponent.vue";
import PropertyViewComponent from "@/components/PropertyViewComponent.vue";
Vue.prototype.moment = moment
@ -209,7 +209,7 @@ export default {
RecipeSwitcher,
CustomInputSpinButton,
BottomNavigationBar,
FoodPropertyViewComponent,
PropertyViewComponent,
},
computed: {
ingredient_factor: function () {