mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Backup text updates (#23547)
This commit is contained in:
parent
2206644c47
commit
01bc45c78b
@ -37,10 +37,7 @@ class HaBackupOverviewBackups extends LitElement {
|
|||||||
<p>
|
<p>
|
||||||
Backups are essential for a reliable smart home. They help protect
|
Backups are essential for a reliable smart home. They help protect
|
||||||
the work you've put into setting up your smart home, and if the
|
the work you've put into setting up your smart home, and if the
|
||||||
worst happens, you can get back up and running quickly. It is
|
worst happens, you can get back up and running quickly.
|
||||||
recommended that you create a backup every day. You should keep
|
|
||||||
three backups in at least two different locations, one of which
|
|
||||||
should be off-site.
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
|
@ -34,7 +34,7 @@ class HaBackupBackupsSummary extends LitElement {
|
|||||||
const { state: schedule } = config.schedule;
|
const { state: schedule } = config.schedule;
|
||||||
|
|
||||||
if (schedule === BackupScheduleState.NEVER) {
|
if (schedule === BackupScheduleState.NEVER) {
|
||||||
return "Automatic backups are disabled";
|
return "Automatic backups are not scheduled";
|
||||||
}
|
}
|
||||||
|
|
||||||
let copiesText = "and keep all backups";
|
let copiesText = "and keep all backups";
|
||||||
@ -116,7 +116,7 @@ class HaBackupBackupsSummary extends LitElement {
|
|||||||
|
|
||||||
return html`
|
return html`
|
||||||
<ha-card class="my-backups">
|
<ha-card class="my-backups">
|
||||||
<div class="card-header">Automatic backups</div>
|
<div class="card-header">Backup settings</div>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<ha-md-list>
|
<ha-md-list>
|
||||||
<ha-md-list-item
|
<ha-md-list-item
|
||||||
@ -128,7 +128,7 @@ class HaBackupBackupsSummary extends LitElement {
|
|||||||
${this._scheduleDescription(this.config)}
|
${this._scheduleDescription(this.config)}
|
||||||
</div>
|
</div>
|
||||||
<div slot="supporting-text">
|
<div slot="supporting-text">
|
||||||
Schedule and number of backups to keep
|
Automatic backup schedule and retention
|
||||||
</div>
|
</div>
|
||||||
<ha-icon-next slot="end"></ha-icon-next>
|
<ha-icon-next slot="end"></ha-icon-next>
|
||||||
</ha-md-list-item>
|
</ha-md-list-item>
|
||||||
@ -174,7 +174,7 @@ class HaBackupBackupsSummary extends LitElement {
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
<ha-button @click=${this._configure}>
|
<ha-button @click=${this._configure}>
|
||||||
Configure automatic backups
|
Configure backup settings
|
||||||
</ha-button>
|
</ha-button>
|
||||||
</div>
|
</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
|
@ -90,7 +90,7 @@ class DialogBackupOnboarding extends LitElement implements HassDialog {
|
|||||||
|
|
||||||
public showDialog(params: BackupOnboardingDialogParams): void {
|
public showDialog(params: BackupOnboardingDialogParams): void {
|
||||||
this._params = params;
|
this._params = params;
|
||||||
this._step = STEPS[0];
|
this._step = params.skipWelcome ? STEPS[1] : STEPS[0];
|
||||||
this._config = RECOMMENDED_CONFIG;
|
this._config = RECOMMENDED_CONFIG;
|
||||||
|
|
||||||
const agents: string[] = [];
|
const agents: string[] = [];
|
||||||
|
@ -5,6 +5,7 @@ export interface BackupOnboardingDialogParams {
|
|||||||
submit?: (value: boolean) => void;
|
submit?: (value: boolean) => void;
|
||||||
cancel?: () => void;
|
cancel?: () => void;
|
||||||
cloudStatus?: CloudStatus;
|
cloudStatus?: CloudStatus;
|
||||||
|
skipWelcome?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const loadDialog = () => import("./dialog-backup-onboarding");
|
const loadDialog = () => import("./dialog-backup-onboarding");
|
||||||
|
@ -304,7 +304,7 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) {
|
|||||||
has-fab
|
has-fab
|
||||||
.tabs=${[
|
.tabs=${[
|
||||||
{
|
{
|
||||||
translationKey: "ui.panel.config.backup.caption",
|
name: "My backups",
|
||||||
path: `/config/backup/list`,
|
path: `/config/backup/list`,
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
@ -143,6 +143,14 @@ class HaConfigBackupDetails extends LitElement {
|
|||||||
)}
|
)}
|
||||||
<span slot="supporting-text">Created</span>
|
<span slot="supporting-text">Created</span>
|
||||||
</ha-md-list-item>
|
</ha-md-list-item>
|
||||||
|
<ha-md-list-item>
|
||||||
|
<span slot="headline">
|
||||||
|
${this._backup.protected
|
||||||
|
? "Encrypted AES-128"
|
||||||
|
: "Not encrypted"}
|
||||||
|
</span>
|
||||||
|
<span slot="supporting-text">Protected</span>
|
||||||
|
</ha-md-list-item>
|
||||||
</ha-md-list>
|
</ha-md-list>
|
||||||
</div>
|
</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
|
@ -73,12 +73,13 @@ class HaConfigBackupOverview extends LitElement {
|
|||||||
|
|
||||||
private _handleOnboardingButtonClick(ev) {
|
private _handleOnboardingButtonClick(ev) {
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
this._setupAutomaticBackup();
|
this._setupAutomaticBackup(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _setupAutomaticBackup() {
|
private async _setupAutomaticBackup(skipWelcome = false) {
|
||||||
const success = await showBackupOnboardingDialog(this, {
|
const success = await showBackupOnboardingDialog(this, {
|
||||||
cloudStatus: this.cloudStatus,
|
cloudStatus: this.cloudStatus,
|
||||||
|
skipWelcome,
|
||||||
});
|
});
|
||||||
if (!success) {
|
if (!success) {
|
||||||
return;
|
return;
|
||||||
|
@ -91,7 +91,7 @@ class HaConfigBackupSettings extends LitElement {
|
|||||||
back-path="/config/backup"
|
back-path="/config/backup"
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.narrow=${this.narrow}
|
.narrow=${this.narrow}
|
||||||
.header=${"Automatic backups"}
|
.header=${"Backup settings"}
|
||||||
>
|
>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<ha-card id="schedule">
|
<ha-card id="schedule">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user