Skip to content

Commit

Permalink
Make sure we show all when you click show all
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Dec 20, 2024
1 parent bccc351 commit 14aefe8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ class HaBackupOverviewBackups extends LitElement {
</ha-md-list>
</div>
<div class="card-actions">
<ha-button href="/config/backup/backups" @click=${this._showAll}>
<ha-button
href="/config/backup/backups?type=all"
@click=${this._showAll}
>
Show all backups
</ha-button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/backup/ha-config-backup-backups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) {
}

this._filters = {
"ha-filter-states": [type],
"ha-filter-states": type === "all" ? [] : [type],
};
}

Expand Down

0 comments on commit 14aefe8

Please sign in to comment.