Update cookcli-card.js
This commit is contained in:
parent
ea4a18ea46
commit
6f96610834
26
dist/cookcli-card.js
vendored
26
dist/cookcli-card.js
vendored
|
|
@ -57,30 +57,10 @@ class CookCliCard extends HTMLElement {
|
|||
static getConfigForm() {
|
||||
return {
|
||||
schema: [
|
||||
{
|
||||
name: "title",
|
||||
selector: { text: {} },
|
||||
},
|
||||
{
|
||||
name: "dashboard_path",
|
||||
selector: { text: {} },
|
||||
helper: "Laisser vide pour naviguer dans le dashboard courant",
|
||||
},
|
||||
{
|
||||
name: "entry_id",
|
||||
selector: { text: {} },
|
||||
helper: "Optionnel — ID d'entrée si plusieurs serveurs CookCLI",
|
||||
},
|
||||
{ name: "title", selector: { text: {} }, label: "Titre" },
|
||||
{ name: "dashboard_path", selector: { text: {} }, label: "Chemin du dashboard", helper: "Laisser vide pour le dashboard courant" },
|
||||
{ name: "entry_id", selector: { text: {} }, label: "Entry ID", helper: "Optionnel — si plusieurs serveurs CookCLI" },
|
||||
],
|
||||
// Fonction optionnelle pour personnaliser les libellés
|
||||
computeLabel: (schema) => {
|
||||
const labels = {
|
||||
title: "Titre",
|
||||
dashboard_path: "Chemin du dashboard",
|
||||
entry_id: "Entry ID",
|
||||
};
|
||||
return labels[schema.name] || schema.name;
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue