mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Show more details on storage page (#26202)
This commit is contained in:
parent
4a50ca4ea5
commit
1a0afc5079
@ -106,6 +106,16 @@ class HaConfigSectionStorage extends LitElement {
|
||||
)}
|
||||
.tooltip=${`${this._hostInfo.disk_used} GB/${this._hostInfo.disk_total} GB`}
|
||||
></ha-metric>
|
||||
<div class="detailed-storage-info">
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.storage.detailed_description",
|
||||
{
|
||||
used: `${this._hostInfo?.disk_used} GB`,
|
||||
total: `${this._hostInfo?.disk_total} GB`,
|
||||
free_space: `${this._hostInfo.disk_free} GB`,
|
||||
}
|
||||
)}
|
||||
</div>
|
||||
${this._hostInfo.disk_life_time !== "" &&
|
||||
this._hostInfo.disk_life_time >= 10
|
||||
? // prettier-ignore
|
||||
@ -316,6 +326,11 @@ class HaConfigSectionStorage extends LitElement {
|
||||
justify-content: space-between;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.detailed-storage-info {
|
||||
font-size: var(--ha-font-size-s);
|
||||
color: var(--secondary-text-color);
|
||||
}
|
||||
.mount-state-failed {
|
||||
color: var(--error-color);
|
||||
}
|
||||
|
@ -6571,6 +6571,7 @@
|
||||
"caption": "Storage",
|
||||
"description": "{percent_used} used - {free_space} free",
|
||||
"used_space": "Used space",
|
||||
"detailed_description": "{used} used of {total} total, {free_space} remaining",
|
||||
"emmc_lifetime_used": "eMMC lifetime used",
|
||||
"disk_metrics": "Disk metrics",
|
||||
"datadisk": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user