mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
Change title to name (#2425)
This commit is contained in:
parent
3f6a8cac80
commit
ddb050d1fd
@ -17,7 +17,7 @@ import "../../components/hui-entity-editor";
|
||||
|
||||
const cardConfigStruct = struct({
|
||||
type: "string",
|
||||
title: "string?",
|
||||
name: "string?",
|
||||
entity: "string?",
|
||||
unit: "string?",
|
||||
min: "number?",
|
||||
@ -42,8 +42,8 @@ export class HuiGaugeCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
return { hass: {}, _config: {} };
|
||||
}
|
||||
|
||||
get _title(): string {
|
||||
return this._config!.title || "";
|
||||
get _name(): string {
|
||||
return this._config!.name || "";
|
||||
}
|
||||
|
||||
get _entity(): string {
|
||||
@ -80,9 +80,9 @@ export class HuiGaugeCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="card-config">
|
||||
<div class="side-by-side">
|
||||
<paper-input
|
||||
label="Title"
|
||||
.value="${this._title}"
|
||||
.configValue=${"title"}
|
||||
label="Name"
|
||||
.value="${this._name}"
|
||||
.configValue=${"name"}
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
<ha-entity-picker
|
||||
|
Loading…
x
Reference in New Issue
Block a user