From 4927f8bf4d4a182d59550f6f7fb9545ec3d3f804 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 29 Oct 2021 14:25:20 +0200 Subject: [PATCH] fixed nutrition form --- .../apps/RecipeEditView/RecipeEditView.vue | 30 ++++++++++++------- vue/src/locales/en.json | 2 ++ 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/vue/src/apps/RecipeEditView/RecipeEditView.vue b/vue/src/apps/RecipeEditView/RecipeEditView.vue index 076656648..2c025dc56 100644 --- a/vue/src/apps/RecipeEditView/RecipeEditView.vue +++ b/vue/src/apps/RecipeEditView/RecipeEditView.vue @@ -93,21 +93,26 @@
{{ $t('Nutrition') }}
-
- -
+ +
+ + There is currently only very basic support for tracking nutritional information. + A big update is planned to improve on this in many different areas. + + @@ -461,7 +466,8 @@
-
@@ -505,7 +511,7 @@ Vue.use(VueMarkdownEditor); Vue.use(BootstrapVue) export default { - name: 'RecipeSearchView', + name: 'RecipeEditView', mixins: [ResolveUrlMixin, ApiMixin], components: {Multiselect, LoadingSpinner, draggable}, data() { @@ -527,7 +533,11 @@ export default { } }, - computed: {}, + computed: { + nutrition_visible: function () { + return this.recipe.nutrition !== null + } + }, mounted() { this.loadRecipe() diff --git a/vue/src/locales/en.json b/vue/src/locales/en.json index 8e3e7e310..1bae903b6 100644 --- a/vue/src/locales/en.json +++ b/vue/src/locales/en.json @@ -26,6 +26,8 @@ "Recipes_per_page": "Recipes per Page", "Show_as_header": "Show as header", "Hide_as_header": "Hide as header", + "Add_nutrition_recipe": "Add nutrition to recipe", + "Remove_nutrition_recipe": "Delete nutrition from recipe", "Copy_template_reference": "Copy template reference", "Save_and_View": "Save & View", "Manage_Books": "Manage Books",