Update cookcli-recipe-strategy.js
This commit is contained in:
parent
6428797de7
commit
b5e39bb43a
5
dist/cookcli-recipe-strategy.js
vendored
5
dist/cookcli-recipe-strategy.js
vendored
|
|
@ -171,8 +171,7 @@ class CookCliRecipeViewStrategy extends HTMLElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
// title: recipe.title || "Recette",
|
title: recipe.title || "Recette",
|
||||||
title: "Recette",
|
|
||||||
panel: true,
|
panel: true,
|
||||||
cards: [tabdeckCard],
|
cards: [tabdeckCard],
|
||||||
};
|
};
|
||||||
|
|
@ -208,7 +207,7 @@ class CookCliRecipeViewStrategy extends HTMLElement {
|
||||||
|
|
||||||
static _summaryTab(recipe, config, stepCount) {
|
static _summaryTab(recipe, config, stepCount) {
|
||||||
let content = "";
|
let content = "";
|
||||||
if (recipe.image_url) content += `\n\n`;
|
if (recipe.image_url) content += `\n\n`;
|
||||||
content += `## ${recipe.title || ""}\n`;
|
content += `## ${recipe.title || ""}\n`;
|
||||||
if (recipe.cookware && recipe.cookware.length) {
|
if (recipe.cookware && recipe.cookware.length) {
|
||||||
content += `\n**Ustensiles** : ${recipe.cookware.map((c) => c.name).join(", ")}\n`;
|
content += `\n**Ustensiles** : ${recipe.cookware.map((c) => c.name).join(", ")}\n`;
|
||||||
|
|
|
||||||
Reference in a new issue