Add panel mode to views
This commit is contained in:
parent
bbcae5d48f
commit
8cfb373f04
2
dist/cookcli-recipe-strategy.js
vendored
2
dist/cookcli-recipe-strategy.js
vendored
|
|
@ -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,
|
||||||
|
|
|
||||||
Reference in a new issue