mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Make helper option button more user friendly (#12468)
This commit is contained in:
parent
2cc6432a0f
commit
66adecdfc9
@ -356,6 +356,25 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
|||||||
)}
|
)}
|
||||||
</ha-select>`
|
</ha-select>`
|
||||||
: ""}
|
: ""}
|
||||||
|
${this._helperConfigEntry
|
||||||
|
? html`
|
||||||
|
<div class="row">
|
||||||
|
<mwc-button
|
||||||
|
@click=${this._showOptionsFlow}
|
||||||
|
.disabled=${this._submitting}
|
||||||
|
>
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.dialogs.entity_registry.editor.configure_state",
|
||||||
|
"integration",
|
||||||
|
domainToName(
|
||||||
|
this.hass.localize,
|
||||||
|
this._helperConfigEntry.domain
|
||||||
|
)
|
||||||
|
)}
|
||||||
|
</mwc-button>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
: ""}
|
||||||
<ha-textfield
|
<ha-textfield
|
||||||
error-message="Domain needs to stay the same"
|
error-message="Domain needs to stay the same"
|
||||||
.value=${this._entityId}
|
.value=${this._entityId}
|
||||||
@ -373,20 +392,6 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
|||||||
@value-changed=${this._areaPicked}
|
@value-changed=${this._areaPicked}
|
||||||
></ha-area-picker>`
|
></ha-area-picker>`
|
||||||
: ""}
|
: ""}
|
||||||
${this._helperConfigEntry
|
|
||||||
? html`
|
|
||||||
<div class="row">
|
|
||||||
<mwc-button
|
|
||||||
@click=${this._showOptionsFlow}
|
|
||||||
.disabled=${this._submitting}
|
|
||||||
>
|
|
||||||
${this.hass.localize(
|
|
||||||
"ui.dialogs.entity_registry.editor.configure_state"
|
|
||||||
)}
|
|
||||||
</mwc-button>
|
|
||||||
</div>
|
|
||||||
`
|
|
||||||
: ""}
|
|
||||||
|
|
||||||
<ha-expansion-panel
|
<ha-expansion-panel
|
||||||
.header=${this.hass.localize(
|
.header=${this.hass.localize(
|
||||||
|
@ -79,9 +79,11 @@ class HaInputSelectForm extends LitElement {
|
|||||||
"ui.dialogs.helper_settings.generic.icon"
|
"ui.dialogs.helper_settings.generic.icon"
|
||||||
)}
|
)}
|
||||||
></ha-icon-picker>
|
></ha-icon-picker>
|
||||||
${this.hass!.localize(
|
<div class="header">
|
||||||
"ui.dialogs.helper_settings.input_select.options"
|
${this.hass!.localize(
|
||||||
)}:
|
"ui.dialogs.helper_settings.input_select.options"
|
||||||
|
)}:
|
||||||
|
</div>
|
||||||
${this._options.length
|
${this._options.length
|
||||||
? this._options.map(
|
? this._options.map(
|
||||||
(option, index) => html`
|
(option, index) => html`
|
||||||
@ -206,6 +208,10 @@ class HaInputSelectForm extends LitElement {
|
|||||||
#option_input {
|
#option_input {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
.header {
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -858,7 +858,7 @@
|
|||||||
"area_note": "By default the entities of a device are in the same area as the device. If you change the area of this entity, it will no longer follow the area of the device.",
|
"area_note": "By default the entities of a device are in the same area as the device. If you change the area of this entity, it will no longer follow the area of the device.",
|
||||||
"follow_device_area": "Follow device area",
|
"follow_device_area": "Follow device area",
|
||||||
"change_device_area": "Change device area",
|
"change_device_area": "Change device area",
|
||||||
"configure_state": "Configure State"
|
"configure_state": "{integration} options"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"helper_settings": {
|
"helper_settings": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user