-
- {{ entry.entry.meal_type.icon }}
- ❓
-
{{ title }}
@@ -71,7 +68,8 @@ export default {
image_placeholder: window.IMAGE_PLACEHOLDER,
}
},
- mounted() {},
+ mounted() {
+ },
computed: {
entry: function () {
return this.value.originalItem
diff --git a/vue/src/components/MealPlanEditModal.vue b/vue/src/components/MealPlanEditModal.vue
index e78e78005a..275ba740c1 100644
--- a/vue/src/components/MealPlanEditModal.vue
+++ b/vue/src/components/MealPlanEditModal.vue
@@ -135,10 +135,9 @@ import Vue from "vue"
import VueCookies from "vue-cookies"
import {BootstrapVue} from "bootstrap-vue"
import GenericMultiselect from "@/components/GenericMultiselect"
-import {ApiMixin, getUserPreference} from "@/utils/utils"
+import {ApiMixin, getUserPreference, ToastMixin} from "@/utils/utils"
const {ApiApiFactory} = require("@/utils/openapi/api")
-const {StandardToasts} = require("@/utils/utils")
import {useUserPreferenceStore} from "@/stores/UserPreferenceStore";
import {useMealPlanStore} from "@/stores/MealPlanStore";
@@ -163,7 +162,7 @@ export default {
default: true,
},
},
- mixins: [ApiMixin],
+ mixins: [ApiMixin, ToastMixin],
components: {
GenericMultiselect,
RecipeCard: () => import("@/components/RecipeCard.vue"),
@@ -234,9 +233,11 @@ export default {
editEntry() {
if (this.entryEditing.meal_type == null) {
+ this.makeToast('Warning', this.$t('Meal_Type_Required'), 'warning')
return;
}
if (this.entryEditing.recipe == null && this.entryEditing.title === "") {
+ this.makeToast('Warning', this.$t('Title_or_Recipe_Required'), 'warning')
return
}
//TODO properly validate
diff --git a/vue/src/components/Modals/ColorInput.vue b/vue/src/components/Modals/ColorInput.vue
new file mode 100644
index 0000000000..1a1c5afc12
--- /dev/null
+++ b/vue/src/components/Modals/ColorInput.vue
@@ -0,0 +1,46 @@
+
+
+
+
+ {{ help }}
+ {{ subtitle }}
+
+
+
+
+
diff --git a/vue/src/components/Modals/GenericModalForm.vue b/vue/src/components/Modals/GenericModalForm.vue
index 15bdd25810..a2bdb9a612 100644
--- a/vue/src/components/Modals/GenericModalForm.vue
+++ b/vue/src/components/Modals/GenericModalForm.vue
@@ -19,6 +19,7 @@
+