mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56: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`}
|
.tooltip=${`${this._hostInfo.disk_used} GB/${this._hostInfo.disk_total} GB`}
|
||||||
></ha-metric>
|
></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 !== "" &&
|
||||||
this._hostInfo.disk_life_time >= 10
|
this._hostInfo.disk_life_time >= 10
|
||||||
? // prettier-ignore
|
? // prettier-ignore
|
||||||
@ -316,6 +326,11 @@ class HaConfigSectionStorage extends LitElement {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detailed-storage-info {
|
||||||
|
font-size: var(--ha-font-size-s);
|
||||||
|
color: var(--secondary-text-color);
|
||||||
|
}
|
||||||
.mount-state-failed {
|
.mount-state-failed {
|
||||||
color: var(--error-color);
|
color: var(--error-color);
|
||||||
}
|
}
|
||||||
|
@ -6571,6 +6571,7 @@
|
|||||||
"caption": "Storage",
|
"caption": "Storage",
|
||||||
"description": "{percent_used} used - {free_space} free",
|
"description": "{percent_used} used - {free_space} free",
|
||||||
"used_space": "Used space",
|
"used_space": "Used space",
|
||||||
|
"detailed_description": "{used} used of {total} total, {free_space} remaining",
|
||||||
"emmc_lifetime_used": "eMMC lifetime used",
|
"emmc_lifetime_used": "eMMC lifetime used",
|
||||||
"disk_metrics": "Disk metrics",
|
"disk_metrics": "Disk metrics",
|
||||||
"datadisk": {
|
"datadisk": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user