mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 15:19:41 +02:00
feat: Add Alerts for Ingredient Parsing Errors (#3795)
This commit is contained in:
parent
477899fce3
commit
5e0f8a4bf7
2 changed files with 8 additions and 0 deletions
|
@ -64,6 +64,7 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { defineComponent, reactive, ref, toRefs, useContext } from "@nuxtjs/composition-api";
|
||||
import { alert } from "~/composables/use-toast";
|
||||
import { useUserApi } from "~/composables/api";
|
||||
import { IngredientConfidence } from "~/lib/api/types/recipe";
|
||||
import { Parser } from "~/lib/api/user/recipes/recipe";
|
||||
|
@ -161,6 +162,9 @@ export default defineComponent({
|
|||
properties[property].confidence = confidence;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
alert.error(i18n.t("events.something-went-wrong") as string);
|
||||
state.results = false;
|
||||
}
|
||||
state.loading = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue