mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Picture elements editor minor adjustments (#21512)
* Picture elements editor minor adjustments * image selector for image element * revert change to expanded
This commit is contained in:
parent
adceed689b
commit
1ca0b58aca
@ -45,7 +45,14 @@ export class HaImageSelector extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<div>
|
<div>
|
||||||
<label>
|
<label>
|
||||||
${this.hass.localize("ui.components.selectors.image.select_image")}
|
${this.hass.localize(
|
||||||
|
"ui.components.selectors.image.select_image_with_label",
|
||||||
|
{
|
||||||
|
label:
|
||||||
|
this.label ||
|
||||||
|
this.hass.localize("ui.components.selectors.image.image"),
|
||||||
|
}
|
||||||
|
)}
|
||||||
<ha-formfield
|
<ha-formfield
|
||||||
.label=${this.hass.localize("ui.components.selectors.image.upload")}
|
.label=${this.hass.localize("ui.components.selectors.image.upload")}
|
||||||
>
|
>
|
||||||
|
@ -41,7 +41,7 @@ const SCHEMA = [
|
|||||||
ui_action: {},
|
ui_action: {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ name: "image", selector: { text: {} } },
|
{ name: "image", selector: { image: {} } },
|
||||||
{ name: "camera_image", selector: { entity: { domain: "camera" } } },
|
{ name: "camera_image", selector: { entity: { domain: "camera" } } },
|
||||||
{
|
{
|
||||||
name: "camera_view",
|
name: "camera_view",
|
||||||
|
@ -74,8 +74,8 @@ export class HuiPictureElementsCardEditor
|
|||||||
),
|
),
|
||||||
schema: [
|
schema: [
|
||||||
{ name: "title", selector: { text: {} } },
|
{ name: "title", selector: { text: {} } },
|
||||||
{ name: "image", selector: { text: {} } },
|
{ name: "image", selector: { image: {} } },
|
||||||
{ name: "dark_mode_image", selector: { text: {} } },
|
{ name: "dark_mode_image", selector: { image: {} } },
|
||||||
{
|
{
|
||||||
name: "camera_image",
|
name: "camera_image",
|
||||||
selector: { entity: { domain: "camera" } },
|
selector: { entity: { domain: "camera" } },
|
||||||
|
@ -379,7 +379,8 @@
|
|||||||
"unknown_file": "Unknown file"
|
"unknown_file": "Unknown file"
|
||||||
},
|
},
|
||||||
"image": {
|
"image": {
|
||||||
"select_image": "Select image",
|
"image": "image",
|
||||||
|
"select_image_with_label": "Select {label}",
|
||||||
"upload": "Upload picture",
|
"upload": "Upload picture",
|
||||||
"url": "Local path or web URL"
|
"url": "Local path or web URL"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user