mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 13:26:34 +00:00
Show why relayer is reconnecting (#11732)
This commit is contained in:
parent
8999ca2ea0
commit
728c391b5d
@ -47,6 +47,7 @@ export interface CloudPreferences {
|
||||
export interface CloudStatusLoggedIn {
|
||||
logged_in: true;
|
||||
cloud: "disconnected" | "connecting" | "connected";
|
||||
cloud_last_disconnect_reason: { clean: boolean; reason: string } | null;
|
||||
email: string;
|
||||
google_registered: boolean;
|
||||
google_entities: EntityFilter;
|
||||
|
@ -10,6 +10,7 @@ import { fireEvent } from "../../../../common/dom/fire_event";
|
||||
import { computeRTLDirection } from "../../../../common/util/compute_rtl";
|
||||
import "../../../../components/buttons/ha-call-api-button";
|
||||
import "../../../../components/ha-card";
|
||||
import "../../../../components/ha-alert";
|
||||
import "../../../../components/ha-button-menu";
|
||||
import "../../../../components/ha-icon-button";
|
||||
import { debounce } from "../../../../common/util/debounce";
|
||||
@ -106,6 +107,17 @@ export class CloudAccount extends SubscribeMixin(LitElement) {
|
||||
</paper-item-body>
|
||||
</div>
|
||||
|
||||
${this.cloudStatus.cloud === "connecting" &&
|
||||
this.cloudStatus.cloud_last_disconnect_reason
|
||||
? html`
|
||||
<ha-alert
|
||||
alert-type="warning"
|
||||
.title=${this.cloudStatus.cloud_last_disconnect_reason
|
||||
.reason}
|
||||
></ha-alert>
|
||||
`
|
||||
: ""}
|
||||
|
||||
<div class="account-row">
|
||||
<paper-item-body>
|
||||
${this.hass.localize(
|
||||
|
Loading…
x
Reference in New Issue
Block a user