Add panel mode to views

This commit is contained in:
TheThomaas 2026-09-16 14:23:20 +02:00
parent bbcae5d48f
commit 8cfb373f04

View file

@ -72,6 +72,7 @@ class CookCliDashboardStrategy extends HTMLElement {
const listView = { const listView = {
title: config.title || "Recettes", title: config.title || "Recettes",
path: "recettes", path: "recettes",
panel: true,
cards: [ cards: [
{ {
type: "custom:cookcli-card", type: "custom:cookcli-card",
@ -84,6 +85,7 @@ class CookCliDashboardStrategy extends HTMLElement {
const recipeViews = recipes.map((recipe) => ({ const recipeViews = recipes.map((recipe) => ({
path: recipe.view_path, path: recipe.view_path,
subview: true, subview: true,
panel: true,
strategy: { strategy: {
type: "custom:cookcli-recipe", type: "custom:cookcli-recipe",
path: recipe.path, path: recipe.path,