Changed nutritional to nutrition.

This commit is contained in:
matthias committed 2026-09-28 01:55:09 +02:00
1 parent 7986632dab
commit 3ae697d852
15 files changed
+93 -10234

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@
<v-divider vertical/>
<Nutrition v-bind:nutrition="store.article.nutritional"/>
<Nutrition v-bind:nutrition="store.article.nutrition"/>
<v-btn
:flat="true"
@@ -2,10 +2,10 @@
import {useLabelEditorStore} from "~/store/labelEditorStore";
import type {Ref} from "vue";
import DeleteConfirm from "~/components/ui/deleteConfirm.vue";
import type {Nutritional} from "~/types/nutritional.ts";
import type {Nutrition} from "~/types/nutrition.ts";
const props = defineProps({
nutrition: {type: Object as PropType<Nutritional | null>, required: true},
nutrition: {type: Object as PropType<Nutrition | null>, required: true},
});
let store = useLabelEditorStore();
@@ -4,7 +4,7 @@
import { Variant } from "~/types/variant";
import type {Unit} from "~/types/unit";
import type {Label} from "~/types/label";
import type {Nutritional} from "~/types/nutritional.ts";
import type {Nutrition} from "~/types/nutrition.ts";
let store = useLabelEditorStore();
@@ -5,7 +5,7 @@
import DeleteConfirm from "~/components/ui/deleteConfirm.vue";
import type {Unit} from "~/types/unit";
import type {Label} from "~/types/label";
import type {Nutritional} from "~/types/nutritional.ts";
import type {Nutrition} from "~/types/nutrition.ts";
let store = useLabelEditorStore();
@@ -24,7 +24,7 @@
let label: Ref<Label | null> = ref<Label | null>(JSON.parse(JSON.stringify(props.variant.label)));
let variant_description: Ref<string | null> = ref<string | null>(JSON.parse(JSON.stringify(props.variant.variant_description)));
let topm_row: Ref<string | null> = ref<string | null>(JSON.parse(JSON.stringify(props.variant.topm_row)));
let nutrition: Ref<Nutritional | null> = ref<Nutritional | null>(JSON.parse(JSON.stringify(props.variant.nutritional)));
let nutrition: Ref<Nutrition | null> = ref<Nutrition | null>(JSON.parse(JSON.stringify(props.variant.nutrition)));
function toggleEdit() {
if (edit.value) {