From bf242043a4d2b401de5685157ebde700d00ea063 Mon Sep 17 00:00:00 2001 From: 9Lukas5 Date: Sun, 25 Jan 2026 15:52:06 +0100 Subject: [PATCH] refactor(public/viewjs/recipes): slightly different text on new option enabled ref https://github.com/grocy/grocy/issues/686 --- public/viewjs/recipes.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/public/viewjs/recipes.js b/public/viewjs/recipes.js index 0ce9df68..70170881 100644 --- a/public/viewjs/recipes.js +++ b/public/viewjs/recipes.js @@ -190,9 +190,20 @@ $(document).on('click', '.recipe-shopping-list', function(e) { var objectName = $(e.currentTarget).attr('data-recipe-name'); var objectId = $(e.currentTarget).attr('data-recipe-id'); + var ignore_stock = BoolVal(Grocy.UserSettings.recipes_ignore_stock_on_add_to_cart_checkbox); bootbox.confirm({ - message: __t('Are you sure you want to put all missing ingredients for recipe "%s" on the shopping list?', objectName) + "

" + __t("Uncheck ingredients to not put them on the shopping list") + ":" + $("#missing-recipe-pos-list")[0].outerHTML.replace("d-none", ""), + message: + __t( + (ignore_stock) + ? 'Are you sure you want to put all ingredients for recipe "%s" on the shopping list?' + : 'Are you sure you want to put all missing ingredients for recipe "%s" on the shopping list?', + objectName + ) + + "

" + + __t("Uncheck ingredients to not put them on the shopping list") + + ":" + + $("#missing-recipe-pos-list")[0].outerHTML.replace("d-none", ""), closeButton: false, buttons: { confirm: {