refactor(public/viewjs/recipes): slightly different text on new option enabled

ref https://github.com/grocy/grocy/issues/686
This commit is contained in:
9Lukas5 2026-01-25 15:52:06 +01:00
parent 1dd6f21066
commit bf242043a4
No known key found for this signature in database
GPG Key ID: 3203216F282460B6

View File

@ -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) + "<br><br>" + __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
)
+ "<br><br>"
+ __t("Uncheck ingredients to not put them on the shopping list")
+ ":"
+ $("#missing-recipe-pos-list")[0].outerHTML.replace("d-none", ""),
closeButton: false,
buttons: {
confirm: {