mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
disable weekRecipeConsume if weekCosts are zero
This commit is contained in:
parent
646807eeab
commit
1c25f2dbb7
|
|
@ -64,7 +64,8 @@ var calendar = $("#calendar").fullCalendar({
|
|||
weekRecipeOrderMissingButtonDisabledClasses = "disabled";
|
||||
}
|
||||
var weekRecipeConsumeButtonDisabledClasses = "";
|
||||
if (FindObjectInArrayByPropertyValue(recipesResolved, "recipe_id", weekRecipe.id).need_fulfilled == 0)
|
||||
console.log(weekCosts);
|
||||
if (FindObjectInArrayByPropertyValue(recipesResolved, "recipe_id", weekRecipe.id).need_fulfilled == 0 || weekCosts == 0)
|
||||
{
|
||||
weekRecipeConsumeButtonDisabledClasses = "disabled";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user