mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-12 12:30:47 +00:00
Add loading text for long-running integration install step (#4378)
* Added optional label for dialog-data-entry-flow * Use correct loading element * Update src/translations/en.json Co-Authored-By: Bram Kragten <mail@bramkragten.nl> * Minor template adjustment * Revert accidental change of PR templates * Revert accidental change of PR templates Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
@@ -5,14 +5,22 @@ import {
|
||||
css,
|
||||
customElement,
|
||||
CSSResult,
|
||||
property,
|
||||
} from "lit-element";
|
||||
import "@polymer/paper-spinner/paper-spinner-lite";
|
||||
|
||||
@customElement("step-flow-loading")
|
||||
class StepFlowLoading extends LitElement {
|
||||
@property() public label?: string;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
return html`
|
||||
<div class="init-spinner">
|
||||
${this.label
|
||||
? html`
|
||||
<div>${this.label}</div>
|
||||
`
|
||||
: ""}
|
||||
<paper-spinner-lite active></paper-spinner-lite>
|
||||
</div>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user