diff --git a/public/viewjs/mealplan.js b/public/viewjs/mealplan.js
index f0302aa5..be5bb14f 100644
--- a/public/viewjs/mealplan.js
+++ b/public/viewjs/mealplan.js
@@ -65,7 +65,13 @@ var calendar = $("#calendar").fullCalendar({
{
weekRecipeConsumeButtonDisabledClasses = "disabled";
}
- weekRecipeOrderMissingButtonHtml = ''
+
+ var weekRecipeOrderMissingButtonHtml = "";
+ if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_SHOPPINGLIST)
+ {
+ weekRecipeOrderMissingButtonHtml = '';
+ }
+
weekRecipeConsumeButtonHtml = ''
}
$(".fc-header-toolbar .fc-center").html("
\
' + recipe.name + '
\
@@ -143,7 +155,7 @@ var calendar = $("#calendar").fullCalendar({
\
\
\
- \
+ ' + shoppingListButtonHtml + ' \
\
' + doneButtonHtml + ' \
\
@@ -220,6 +232,12 @@ var calendar = $("#calendar").fullCalendar({
costsAndCaloriesPerServing = '
' + productDetails.product.calories * mealPlanEntry.product_amount + ' kcal ' + '
';
}
+ var shoppingListButtonHtml = "";
+ if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_SHOPPINGLIST)
+ {
+ shoppingListButtonHtml = '
';
+ }
+
element.html('\
\
' + productDetails.product.name + '
\
@@ -230,7 +248,7 @@ var calendar = $("#calendar").fullCalendar({
\
\
\
-
\
+ ' + shoppingListButtonHtml + ' \
' + doneButtonHtml + ' \
\
');
diff --git a/views/stockentries.blade.php b/views/stockentries.blade.php
index f4894cf3..2376f27f 100644
--- a/views/stockentries.blade.php
+++ b/views/stockentries.blade.php
@@ -128,12 +128,14 @@