mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Always show backup location retention settings (#25261)
Always show backup location retention settings
This commit is contained in:
parent
ebc16d6520
commit
dddba58d38
@ -118,19 +118,17 @@ class HaConfigBackupDetails extends LitElement {
|
||||
</p>
|
||||
</div>
|
||||
`
|
||||
: this.config?.agents[this.agentId]
|
||||
? html`<ha-backup-config-retention
|
||||
location-specific
|
||||
.headline=${this.hass.localize(
|
||||
`ui.panel.config.backup.location.retention_for_${isLocalAgent(this.agentId) ? "this_system" : "location"}`,
|
||||
{ location: agentName }
|
||||
)}
|
||||
.hass=${this.hass}
|
||||
.retention=${this.config?.agents[this.agentId]
|
||||
?.retention}
|
||||
@value-changed=${this._retentionChanged}
|
||||
></ha-backup-config-retention>`
|
||||
: nothing}
|
||||
: html`<ha-backup-config-retention
|
||||
location-specific
|
||||
.headline=${this.hass.localize(
|
||||
`ui.panel.config.backup.location.retention_for_${isLocalAgent(this.agentId) ? "this_system" : "location"}`,
|
||||
{ location: agentName }
|
||||
)}
|
||||
.hass=${this.hass}
|
||||
.retention=${this.config?.agents[this.agentId]
|
||||
?.retention}
|
||||
@value-changed=${this._retentionChanged}
|
||||
></ha-backup-config-retention>`}
|
||||
</ha-card>
|
||||
<ha-card>
|
||||
<div class="card-header">
|
||||
|
Loading…
x
Reference in New Issue
Block a user