mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-08 09:56:36 +00:00
Update change encryption key dialog (#23551)
This commit is contained in:
parent
01bc45c78b
commit
64ad37ed6a
@ -92,6 +92,8 @@ class DialogChangeBackupEncryptionKey extends LitElement implements HassDialog {
|
||||
? "Save current encryption key"
|
||||
: this._step === "new"
|
||||
? "New encryption key"
|
||||
: this._step === "done"
|
||||
? "Save new encryption key"
|
||||
: "";
|
||||
|
||||
return html`
|
||||
@ -166,10 +168,22 @@ class DialogChangeBackupEncryptionKey extends LitElement implements HassDialog {
|
||||
case "new":
|
||||
return html`
|
||||
<p>
|
||||
Keep this encryption key in a safe place, as you will need it to
|
||||
access your backup, allowing it to be restored. Either record the
|
||||
All next backups will use the new encryption key. Encryption keeps
|
||||
your backups private and secure.
|
||||
</p>
|
||||
<div class="encryption-key">
|
||||
<p>${this._newEncryptionKey}</p>
|
||||
<ha-icon-button
|
||||
.path=${mdiContentCopy}
|
||||
@click=${this._copyKeyToClipboard}
|
||||
></ha-icon-button>
|
||||
</div>
|
||||
`;
|
||||
case "done":
|
||||
return html`<p>
|
||||
Keep this new encryption key in a safe place, as you will need it to
|
||||
access your backups, allowing it to be restored. Either record the
|
||||
characters below or download them as an emergency kit file.
|
||||
Encryption keeps your backups private and secure.
|
||||
</p>
|
||||
<div class="encryption-key">
|
||||
<p>${this._newEncryptionKey}</p>
|
||||
@ -189,18 +203,7 @@ class DialogChangeBackupEncryptionKey extends LitElement implements HassDialog {
|
||||
Download
|
||||
</ha-button>
|
||||
</ha-md-list-item>
|
||||
</ha-md-list>
|
||||
`;
|
||||
case "done":
|
||||
return html`
|
||||
<div class="done">
|
||||
<img
|
||||
src="/static/images/voice-assistant/hi.png"
|
||||
alt="Casita Home Assistant logo"
|
||||
/>
|
||||
<p>Encryption key changed</p>
|
||||
</div>
|
||||
`;
|
||||
</ha-md-list>`;
|
||||
}
|
||||
return nothing;
|
||||
}
|
||||
@ -303,13 +306,6 @@ class DialogChangeBackupEncryptionKey extends LitElement implements HassDialog {
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
.done {
|
||||
text-align: center;
|
||||
font-size: 22px;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
line-height: 28px;
|
||||
}
|
||||
`,
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user