mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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() {
|
||||
if (!this._addons) {
|
||||
return nothing;
|
||||
}
|
||||
if (this._error) {
|
||||
return html`<ha-alert alert-type="error">${this._error}</ha-alert>`;
|
||||
}
|
||||
if (!this._addons) {
|
||||
return nothing;
|
||||
}
|
||||
return html`
|
||||
<ha-combo-box
|
||||
.hass=${this.hass}
|
||||
|
@ -45,12 +45,12 @@ class HaMountPicker extends LitElement {
|
||||
}
|
||||
|
||||
protected render() {
|
||||
if (!this._mounts) {
|
||||
return nothing;
|
||||
}
|
||||
if (this._error) {
|
||||
return html`<ha-alert alert-type="error">${this._error}</ha-alert>`;
|
||||
}
|
||||
if (!this._mounts) {
|
||||
return nothing;
|
||||
}
|
||||
const dataDiskOption = html`<ha-list-item
|
||||
graphic="icon"
|
||||
.value=${__BACKUP_DATA_DISK__}
|
||||
|
Loading…
x
Reference in New Issue
Block a user