mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
fix error display upload backup (#23565)
This commit is contained in:
parent
6d48e725c7
commit
1faf024c5b
@ -89,6 +89,9 @@ export class DialogUploadBackup
|
|||||||
<span slot="title">Upload backup</span>
|
<span slot="title">Upload backup</span>
|
||||||
</ha-dialog-header>
|
</ha-dialog-header>
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
|
${this._error
|
||||||
|
? html`<ha-alert alert-type="error">${this._error}</ha-alert>`
|
||||||
|
: nothing}
|
||||||
<ha-file-upload
|
<ha-file-upload
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.uploading=${this._uploading}
|
.uploading=${this._uploading}
|
||||||
@ -98,9 +101,6 @@ export class DialogUploadBackup
|
|||||||
supports="Supports .tar files"
|
supports="Supports .tar files"
|
||||||
@file-picked=${this._filePicked}
|
@file-picked=${this._filePicked}
|
||||||
></ha-file-upload>
|
></ha-file-upload>
|
||||||
${this._error
|
|
||||||
? html`<ha-alert alertType="error">${this._error}</ha-alert>`
|
|
||||||
: nothing}
|
|
||||||
</div>
|
</div>
|
||||||
<div slot="actions">
|
<div slot="actions">
|
||||||
<ha-button @click=${this.closeDialog}>Cancel</ha-button>
|
<ha-button @click=${this.closeDialog}>Cancel</ha-button>
|
||||||
@ -160,6 +160,10 @@ export class DialogUploadBackup
|
|||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
|
ha-alert {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user