WTC-26: подсказка про «Рецепта нет» на пустом экране #26
@ -53,7 +53,7 @@ function render() {
|
||||
$("addExample").textContent = example === null ? "" : t.addExample.replace("{name}", example);
|
||||
$("addExample").dataset.name = example ?? "";
|
||||
$("noRecipeHint").textContent = t.noRecipeHint;
|
||||
$("noRecipeHint").hidden = !hasNoRecipe(state.dishes, findRecipe);
|
||||
$("noRecipeHint").hidden = n !== 0 && !hasNoRecipe(state.dishes, findRecipe);
|
||||
const ul = $("list");
|
||||
ul.replaceChildren(...state.dishes.map((d) => {
|
||||
const li = document.createElement("li");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user