Skip to content

Commit

Permalink
fix error display upload backup (#23565)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Jan 3, 2025
1 parent 6d48e72 commit 1faf024
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/panels/config/backup/dialogs/dialog-upload-backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ export class DialogUploadBackup
<span slot="title">Upload backup</span>
</ha-dialog-header>
<div slot="content">
${this._error
? html`<ha-alert alert-type="error">${this._error}</ha-alert>`
: nothing}
<ha-file-upload
.hass=${this.hass}
.uploading=${this._uploading}
Expand All @@ -98,9 +101,6 @@ export class DialogUploadBackup
supports="Supports .tar files"
@file-picked=${this._filePicked}
></ha-file-upload>
${this._error
? html`<ha-alert alertType="error">${this._error}</ha-alert>`
: nothing}
</div>
<div slot="actions">
<ha-button @click=${this.closeDialog}>Cancel</ha-button>
Expand Down Expand Up @@ -160,6 +160,10 @@ export class DialogUploadBackup
max-width: 500px;
max-height: 100%;
}
ha-alert {
display: block;
margin-bottom: 16px;
}
`,
];
}
Expand Down

0 comments on commit 1faf024

Please sign in to comment.