mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
fix error messages of addon mount picker (#16694)
This commit is contained in:
parent
5217d427e9
commit
36268d5048
@ -58,12 +58,12 @@ class HaAddonPicker extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected render() {
|
protected render() {
|
||||||
if (!this._addons) {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
if (this._error) {
|
if (this._error) {
|
||||||
return html`<ha-alert alert-type="error">${this._error}</ha-alert>`;
|
return html`<ha-alert alert-type="error">${this._error}</ha-alert>`;
|
||||||
}
|
}
|
||||||
|
if (!this._addons) {
|
||||||
|
return nothing;
|
||||||
|
}
|
||||||
return html`
|
return html`
|
||||||
<ha-combo-box
|
<ha-combo-box
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
|
@ -45,12 +45,12 @@ class HaMountPicker extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected render() {
|
protected render() {
|
||||||
if (!this._mounts) {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
if (this._error) {
|
if (this._error) {
|
||||||
return html`<ha-alert alert-type="error">${this._error}</ha-alert>`;
|
return html`<ha-alert alert-type="error">${this._error}</ha-alert>`;
|
||||||
}
|
}
|
||||||
|
if (!this._mounts) {
|
||||||
|
return nothing;
|
||||||
|
}
|
||||||
const dataDiskOption = html`<ha-list-item
|
const dataDiskOption = html`<ha-list-item
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
.value=${__BACKUP_DATA_DISK__}
|
.value=${__BACKUP_DATA_DISK__}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user