1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-30 18:49:41 +02:00

feat(frontend): 🚧 groundwork for user interactive ingredient parsing

This commit is contained in:
hay-kot 2021-08-28 14:14:21 -08:00
parent f8c2f760bd
commit 0f6f81eb27
5 changed files with 129 additions and 9 deletions

View file

@ -110,8 +110,9 @@
/>
</draggable>
<div class="d-flex justify-end mt-2">
<RecipeDialogBulkAdd class="mr-2" @bulk-data="addIngredient" />
<BaseButton @click="addIngredient"> {{ $t("general.new") }} </BaseButton>
<RecipeDialogBulkAdd class="mr-1" @bulk-data="addIngredient" />
<BaseButton class="mr-1" @click="addIngredient"> {{ $t("general.new") }} </BaseButton>
<RecipeIngredientParserMenu :ingredients="recipe.recipeIngredient" />
</div>
</div>
@ -252,6 +253,7 @@ import RecipeNotes from "~/components/Domain/Recipe/RecipeNotes.vue";
import RecipeImageUploadBtn from "~/components/Domain/Recipe/RecipeImageUploadBtn.vue";
import RecipeSettingsMenu from "~/components/Domain/Recipe/RecipeSettingsMenu.vue";
import RecipeIngredientEditor from "~/components/Domain/Recipe/RecipeIngredientEditor.vue";
import RecipeIngredientParserMenu from "~/components/Domain/Recipe/RecipeIngredientParserMenu.vue";
import { Recipe } from "~/types/api-types/recipe";
import { useStaticRoutes } from "~/composables/api";
@ -271,6 +273,7 @@ export default defineComponent({
RecipeSettingsMenu,
RecipeIngredientEditor,
RecipeTimeCard,
RecipeIngredientParserMenu,
VueMarkdown,
draggable,
},