mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-26 14:27:20 +00:00
Show message when cert not ready
This commit is contained in:
parent
a626961ae5
commit
cd466df42c
@ -47,6 +47,16 @@ export class CloudRemotePref extends LitElement {
|
|||||||
remote_certificate,
|
remote_certificate,
|
||||||
} = this.cloudStatus;
|
} = this.cloudStatus;
|
||||||
|
|
||||||
|
if (!remote_certificate) {
|
||||||
|
return html`
|
||||||
|
<paper-card heading="Remote Control">
|
||||||
|
<div class="preparing">
|
||||||
|
Remote access is being prepared. We will notify you when it's ready.
|
||||||
|
</div>
|
||||||
|
</paper-card>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<paper-card heading="Remote Control">
|
<paper-card heading="Remote Control">
|
||||||
<paper-toggle-button
|
<paper-toggle-button
|
||||||
@ -111,6 +121,12 @@ export class CloudRemotePref extends LitElement {
|
|||||||
|
|
||||||
static get styles(): CSSResult {
|
static get styles(): CSSResult {
|
||||||
return css`
|
return css`
|
||||||
|
paper-card {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.preparing {
|
||||||
|
padding: 0 16px 16px;
|
||||||
|
}
|
||||||
.data-row {
|
.data-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user