mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-12 11:56:34 +00:00
Rename appearance section to content in card/badge editors (#24385)
This commit is contained in:
parent
1f50c359dc
commit
10c3e4c6f8
@ -1,4 +1,4 @@
|
|||||||
import { mdiGestureTap, mdiPalette } from "@mdi/js";
|
import { mdiGestureTap, mdiTextShort } from "@mdi/js";
|
||||||
import { LitElement, css, html, nothing } from "lit";
|
import { LitElement, css, html, nothing } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import memoizeOne from "memoize-one";
|
import memoizeOne from "memoize-one";
|
||||||
@ -74,10 +74,10 @@ export class HuiEntityBadgeEditor
|
|||||||
[
|
[
|
||||||
{ name: "entity", selector: { entity: {} } },
|
{ name: "entity", selector: { entity: {} } },
|
||||||
{
|
{
|
||||||
name: "appearance",
|
name: "content",
|
||||||
type: "expandable",
|
type: "expandable",
|
||||||
flatten: true,
|
flatten: true,
|
||||||
iconPath: mdiPalette,
|
iconPath: mdiTextShort,
|
||||||
schema: [
|
schema: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
@ -242,8 +242,6 @@ export class HuiEntityBadgeEditor
|
|||||||
case "state_content":
|
case "state_content":
|
||||||
case "show_entity_picture":
|
case "show_entity_picture":
|
||||||
case "displayed_elements":
|
case "displayed_elements":
|
||||||
case "appearance":
|
|
||||||
case "interactions":
|
|
||||||
return this.hass!.localize(
|
return this.hass!.localize(
|
||||||
`ui.panel.lovelace.editor.badge.entity.${schema.name}`
|
`ui.panel.lovelace.editor.badge.entity.${schema.name}`
|
||||||
);
|
);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { mdiGestureTap, mdiListBox, mdiPalette } from "@mdi/js";
|
import { mdiGestureTap, mdiListBox, mdiTextShort } from "@mdi/js";
|
||||||
import { LitElement, css, html, nothing } from "lit";
|
import { LitElement, css, html, nothing } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import memoizeOne from "memoize-one";
|
import memoizeOne from "memoize-one";
|
||||||
@ -120,10 +120,10 @@ export class HuiTileCardEditor
|
|||||||
[
|
[
|
||||||
{ name: "entity", selector: { entity: {} } },
|
{ name: "entity", selector: { entity: {} } },
|
||||||
{
|
{
|
||||||
name: "appearance",
|
name: "content",
|
||||||
flatten: true,
|
flatten: true,
|
||||||
type: "expandable",
|
type: "expandable",
|
||||||
iconPath: mdiPalette,
|
iconPath: mdiTextShort,
|
||||||
schema: [
|
schema: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
@ -416,7 +416,6 @@ export class HuiTileCardEditor
|
|||||||
case "hide_state":
|
case "hide_state":
|
||||||
case "state_content":
|
case "state_content":
|
||||||
case "content_layout":
|
case "content_layout":
|
||||||
case "appearance":
|
|
||||||
case "features_position":
|
case "features_position":
|
||||||
return this.hass!.localize(
|
return this.hass!.localize(
|
||||||
`ui.panel.lovelace.editor.card.tile.${schema.name}`
|
`ui.panel.lovelace.editor.card.tile.${schema.name}`
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { mdiEye, mdiGestureTap, mdiPalette } from "@mdi/js";
|
import { mdiEye, mdiGestureTap, mdiTextShort } from "@mdi/js";
|
||||||
import { css, html, LitElement, nothing } from "lit";
|
import { css, html, LitElement, nothing } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import memoizeOne from "memoize-one";
|
import memoizeOne from "memoize-one";
|
||||||
@ -78,10 +78,10 @@ export class HuiHeadingEntityEditor
|
|||||||
selector: { entity: {} },
|
selector: { entity: {} },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "appearance",
|
name: "content",
|
||||||
type: "expandable",
|
type: "expandable",
|
||||||
flatten: true,
|
flatten: true,
|
||||||
iconPath: mdiPalette,
|
iconPath: mdiTextShort,
|
||||||
schema: [
|
schema: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
@ -256,7 +256,6 @@ export class HuiHeadingEntityEditor
|
|||||||
switch (schema.name) {
|
switch (schema.name) {
|
||||||
case "state_content":
|
case "state_content":
|
||||||
case "displayed_elements":
|
case "displayed_elements":
|
||||||
case "appearance":
|
|
||||||
case "color":
|
case "color":
|
||||||
return this.hass!.localize(
|
return this.hass!.localize(
|
||||||
`ui.panel.lovelace.editor.card.heading.entity_config.${schema.name}`
|
`ui.panel.lovelace.editor.card.heading.entity_config.${schema.name}`
|
||||||
|
@ -7045,7 +7045,8 @@
|
|||||||
"other_cards": "Other cards",
|
"other_cards": "Other cards",
|
||||||
"custom_cards": "Custom cards",
|
"custom_cards": "Custom cards",
|
||||||
"features": "Features",
|
"features": "Features",
|
||||||
"actions": "Actions"
|
"actions": "Actions",
|
||||||
|
"content": "Content"
|
||||||
},
|
},
|
||||||
"heading": {
|
"heading": {
|
||||||
"name": "Heading",
|
"name": "Heading",
|
||||||
@ -7064,7 +7065,6 @@
|
|||||||
"name_helper": "Visible if selected in state content",
|
"name_helper": "Visible if selected in state content",
|
||||||
"visibility": "Visibility",
|
"visibility": "Visibility",
|
||||||
"visibility_explanation": "The entity will be shown when ALL conditions below are fulfilled. If no conditions are set, the entity will always be shown.",
|
"visibility_explanation": "The entity will be shown when ALL conditions below are fulfilled. If no conditions are set, the entity will always be shown.",
|
||||||
"appearance": "Appearance",
|
|
||||||
"state_content": "State content",
|
"state_content": "State content",
|
||||||
"displayed_elements": "[%key:ui::panel::lovelace::editor::badge::entity::displayed_elements%]",
|
"displayed_elements": "[%key:ui::panel::lovelace::editor::badge::entity::displayed_elements%]",
|
||||||
"displayed_elements_options": {
|
"displayed_elements_options": {
|
||||||
@ -7177,7 +7177,6 @@
|
|||||||
"icon_tap_action": "Icon tap behavior",
|
"icon_tap_action": "Icon tap behavior",
|
||||||
"icon_hold_action": "Icon hold behavior",
|
"icon_hold_action": "Icon hold behavior",
|
||||||
"icon_double_tap_action": "Icon double tap behavior",
|
"icon_double_tap_action": "Icon double tap behavior",
|
||||||
"appearance": "Appearance",
|
|
||||||
"show_entity_picture": "Show entity picture",
|
"show_entity_picture": "Show entity picture",
|
||||||
"hide_state": "Hide state",
|
"hide_state": "Hide state",
|
||||||
"state_content": "State content",
|
"state_content": "State content",
|
||||||
@ -7227,8 +7226,6 @@
|
|||||||
"description": "The Entity badge gives you a quick overview of your entity.",
|
"description": "The Entity badge gives you a quick overview of your entity.",
|
||||||
"color": "[%key:ui::panel::lovelace::editor::card::tile::color%]",
|
"color": "[%key:ui::panel::lovelace::editor::card::tile::color%]",
|
||||||
"color_helper": "[%key:ui::panel::lovelace::editor::card::tile::color_helper%]",
|
"color_helper": "[%key:ui::panel::lovelace::editor::card::tile::color_helper%]",
|
||||||
"interactions": "Interactions",
|
|
||||||
"appearance": "Appearance",
|
|
||||||
"show_entity_picture": "Show entity picture",
|
"show_entity_picture": "Show entity picture",
|
||||||
"state_content": "State content",
|
"state_content": "State content",
|
||||||
"displayed_elements": "Displayed elements",
|
"displayed_elements": "Displayed elements",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user