diff --git a/frontend/app/components/article/article.vue b/frontend/app/components/article/article.vue index eeb3eb5..560129b 100644 --- a/frontend/app/components/article/article.vue +++ b/frontend/app/components/article/article.vue @@ -96,6 +96,8 @@ + + + diff --git a/frontend/app/components/article/articleCreate.vue b/frontend/app/components/article/articleCreate.vue index 88cbb08..f2e5c9f 100644 --- a/frontend/app/components/article/articleCreate.vue +++ b/frontend/app/components/article/articleCreate.vue @@ -37,7 +37,8 @@ const article: Article = new Article(0, name.value, bio.value, origin.value, description.value, ingredients.value, default_unit.value, [], - mhd.value, bio_origin.value, allergens_text.value, bio_info.value, topm_id.value, additional_name.value); + mhd.value, bio_origin.value, allergens_text.value, bio_info.value, topm_id.value, + additional_name.value, null); await store.createArticle(article); diff --git a/frontend/app/components/nutrition/nutrition.vue b/frontend/app/components/nutrition/nutrition.vue new file mode 100644 index 0000000..5762f97 --- /dev/null +++ b/frontend/app/components/nutrition/nutrition.vue @@ -0,0 +1,114 @@ + + + + + \ No newline at end of file diff --git a/frontend/app/components/nutritional/nutritional.vue b/frontend/app/components/nutritional/nutritional.vue deleted file mode 100644 index 96c0baf..0000000 --- a/frontend/app/components/nutritional/nutritional.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - - - \ No newline at end of file diff --git a/frontend/app/components/variant/variantCreate.vue b/frontend/app/components/variant/variantCreate.vue index dfbe253..917bc6c 100644 --- a/frontend/app/components/variant/variantCreate.vue +++ b/frontend/app/components/variant/variantCreate.vue @@ -4,6 +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"; let store = useLabelEditorStore(); @@ -33,7 +34,7 @@ const variant: Variant = new Variant(0, weight.value, ean.value, name.value, description.value, ingredients.value, unit.value, label.value, - variant_description.value, topm_row.value); + variant_description.value, topm_row.value, null); await store.addVariant(variant); diff --git a/frontend/app/components/variant/variantRow.vue b/frontend/app/components/variant/variantRow.vue index 13b2ce6..53f7f98 100644 --- a/frontend/app/components/variant/variantRow.vue +++ b/frontend/app/components/variant/variantRow.vue @@ -5,6 +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"; let store = useLabelEditorStore(); @@ -23,6 +24,7 @@ let label: Ref