mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Fix link on all backups button (#23374)
This commit is contained in:
parent
4de8b562bd
commit
d403532fc1
@ -3,7 +3,6 @@ import type { CSSResultGroup } from "lit";
|
|||||||
import { css, html, LitElement } from "lit";
|
import { css, html, LitElement } from "lit";
|
||||||
import { customElement, property } from "lit/decorators";
|
import { customElement, property } from "lit/decorators";
|
||||||
import memoizeOne from "memoize-one";
|
import memoizeOne from "memoize-one";
|
||||||
import { navigate } from "../../../../../common/navigate";
|
|
||||||
import "../../../../../components/ha-button";
|
import "../../../../../components/ha-button";
|
||||||
import "../../../../../components/ha-card";
|
import "../../../../../components/ha-card";
|
||||||
import "../../../../../components/ha-icon-next";
|
import "../../../../../components/ha-icon-next";
|
||||||
@ -35,10 +34,6 @@ class HaBackupOverviewBackups extends LitElement {
|
|||||||
|
|
||||||
@property({ attribute: false }) public backups: BackupContent[] = [];
|
@property({ attribute: false }) public backups: BackupContent[] = [];
|
||||||
|
|
||||||
private _showAll() {
|
|
||||||
navigate("/config/backup/backups");
|
|
||||||
}
|
|
||||||
|
|
||||||
private _automaticStats = memoizeOne((backups: BackupContent[]) => {
|
private _automaticStats = memoizeOne((backups: BackupContent[]) => {
|
||||||
const automaticBackups = backups.filter(
|
const automaticBackups = backups.filter(
|
||||||
(backup) => backup.with_automatic_settings
|
(backup) => backup.with_automatic_settings
|
||||||
@ -89,12 +84,9 @@ class HaBackupOverviewBackups extends LitElement {
|
|||||||
</ha-md-list>
|
</ha-md-list>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
<ha-button
|
<a href="/config/backup/backups?type=all">
|
||||||
href="/config/backup/backups?type=all"
|
<ha-button>Show all backups</ha-button>
|
||||||
@click=${this._showAll}
|
</a>
|
||||||
>
|
|
||||||
Show all backups
|
|
||||||
</ha-button>
|
|
||||||
</div>
|
</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user