mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-10 10:56:34 +00:00
Fix disable fields in general config (#22938)
This commit is contained in:
parent
fc2e3b7bcf
commit
811977b366
@ -142,7 +142,7 @@ class HaConfigSectionGeneral extends LitElement {
|
|||||||
value="metric"
|
value="metric"
|
||||||
.checked=${this._unitSystem === "metric"}
|
.checked=${this._unitSystem === "metric"}
|
||||||
@change=${this._unitSystemChanged}
|
@change=${this._unitSystemChanged}
|
||||||
.disabled=${this._submitting}
|
.disabled=${disabled}
|
||||||
></ha-radio>
|
></ha-radio>
|
||||||
</ha-formfield>
|
</ha-formfield>
|
||||||
<ha-formfield
|
<ha-formfield
|
||||||
@ -164,7 +164,7 @@ class HaConfigSectionGeneral extends LitElement {
|
|||||||
value="us_customary"
|
value="us_customary"
|
||||||
.checked=${this._unitSystem === "us_customary"}
|
.checked=${this._unitSystem === "us_customary"}
|
||||||
@change=${this._unitSystemChanged}
|
@change=${this._unitSystemChanged}
|
||||||
.disabled=${this._submitting}
|
.disabled=${disabled}
|
||||||
></ha-radio>
|
></ha-radio>
|
||||||
</ha-formfield>
|
</ha-formfield>
|
||||||
${this._unitSystem !== this._configuredUnitSystem()
|
${this._unitSystem !== this._configuredUnitSystem()
|
||||||
@ -253,12 +253,15 @@ class HaConfigSectionGeneral extends LitElement {
|
|||||||
"ui.panel.config.core.section.core.core_config.edit_location_description"
|
"ui.panel.config.core.section.core.core_config.edit_location_description"
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<mwc-button @click=${this._editLocation}
|
<mwc-button @click=${this._editLocation} .disabled=${disabled}
|
||||||
>${this.hass.localize("ui.common.edit")}</mwc-button
|
>${this.hass.localize("ui.common.edit")}</mwc-button
|
||||||
>
|
>
|
||||||
</ha-settings-row>
|
</ha-settings-row>
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
<ha-progress-button @click=${this._updateEntry}>
|
<ha-progress-button
|
||||||
|
@click=${this._updateEntry}
|
||||||
|
.disabled=${disabled}
|
||||||
|
>
|
||||||
${this.hass!.localize("ui.panel.config.zone.detail.update")}
|
${this.hass!.localize("ui.panel.config.zone.detail.update")}
|
||||||
</ha-progress-button>
|
</ha-progress-button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user