feat(public/views/recipessettings): read and set current user setting for recipes_ignore_stock_on_add_to_cart_checkbox

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

View File

@ -12,3 +12,8 @@ if (BoolVal(Grocy.UserSettings.recipes_show_ingredient_checkbox))
{
$("#recipes_show_ingredient_checkbox").prop("checked", true);
}
if (BoolVal(Grocy.UserSettings.recipes_ignore_stock_on_add_to_cart_checkbox))
{
$("#recipes_ignore_stock_on_add_to_cart_checkbox").prop("checked", true);
}