Update cookcli-recipe-strategy.js
This commit is contained in:
parent
3534fbcccf
commit
a1ecac5cb8
|
|
@ -343,6 +343,7 @@ class CookCliRecipeViewStrategy extends HTMLElement {
|
||||||
if (ingredients.length) {
|
if (ingredients.length) {
|
||||||
rightCards.push({
|
rightCards.push({
|
||||||
type: "custom:cookcli-checklist-card",
|
type: "custom:cookcli-checklist-card",
|
||||||
|
title: "Ingrédients",
|
||||||
// État coché propre à cette recette, indépendant de celui des étapes.
|
// État coché propre à cette recette, indépendant de celui des étapes.
|
||||||
storage_key: `${config.path}:summary`,
|
storage_key: `${config.path}:summary`,
|
||||||
items: ingredients.map((ingredient) => {
|
items: ingredients.map((ingredient) => {
|
||||||
|
|
@ -393,6 +394,7 @@ class CookCliRecipeViewStrategy extends HTMLElement {
|
||||||
if (stepIngredients.length) {
|
if (stepIngredients.length) {
|
||||||
leftCards.push({
|
leftCards.push({
|
||||||
type: "custom:cookcli-checklist-card",
|
type: "custom:cookcli-checklist-card",
|
||||||
|
title: "Ingrédients",
|
||||||
// recette + étape : l'état coché est propre à chaque étape de chaque recette
|
// recette + étape : l'état coché est propre à chaque étape de chaque recette
|
||||||
storage_key: `${config.path}:${tabIndex}`,
|
storage_key: `${config.path}:${tabIndex}`,
|
||||||
items: stepIngredients.map((item) => ({
|
items: stepIngredients.map((item) => ({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue