From be8740bbb35789d0a8512425a008422e194e0661 Mon Sep 17 00:00:00 2001 From: 9Lukas5 Date: Sun, 25 Jan 2026 15:47:16 +0100 Subject: [PATCH] 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 --- public/viewjs/recipessettings.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/viewjs/recipessettings.js b/public/viewjs/recipessettings.js index 89ddd137..00306688 100644 --- a/public/viewjs/recipessettings.js +++ b/public/viewjs/recipessettings.js @@ -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); +}