mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Picture elements card editor: Add title to secondary description for custom cards (#22908)
This commit is contained in:
parent
ac6e61b9b8
commit
7996f4e0b2
@ -166,7 +166,7 @@ export class HuiPictureElementsCardRowEditor extends LitElement {
|
||||
`${((element as ConditionalElementConfig).elements || []).length.toString()} ${this.hass?.localize("ui.panel.lovelace.editor.card.picture-elements.elements")}`
|
||||
);
|
||||
}
|
||||
return "Unknown type";
|
||||
return element.title ?? "Unknown type";
|
||||
}
|
||||
|
||||
private async _addElement(ev): Promise<void> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user