mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +00:00
Use consistent title case for headers in Supervisor (#7227)
This commit is contained in:
parent
05630c9896
commit
7e708b3bf7
@ -98,7 +98,7 @@ class HassioAddonStore extends LitElement {
|
||||
main-page
|
||||
.tabs=${supervisorTabs}
|
||||
>
|
||||
<span slot="header">Add-on store</span>
|
||||
<span slot="header">Add-on Store</span>
|
||||
<ha-button-menu
|
||||
corner="BOTTOM_START"
|
||||
slot="toolbar-icon"
|
||||
|
@ -8,7 +8,7 @@ export const supervisorTabs: PageNavigation[] = [
|
||||
iconPath: mdiViewDashboard,
|
||||
},
|
||||
{
|
||||
name: "Add-on store",
|
||||
name: "Add-on Store",
|
||||
path: `/hassio/store`,
|
||||
iconPath: mdiStore,
|
||||
},
|
||||
|
@ -131,7 +131,7 @@ class HassioSnapshots extends LitElement {
|
||||
|
||||
<div class="content">
|
||||
<h1>
|
||||
Create snapshot
|
||||
Create Snapshot
|
||||
</h1>
|
||||
<p class="description">
|
||||
Snapshots allow you to easily backup and restore all data of your
|
||||
@ -219,7 +219,7 @@ class HassioSnapshots extends LitElement {
|
||||
</ha-card>
|
||||
</div>
|
||||
|
||||
<h1>Available snapshots</h1>
|
||||
<h1>Available Snapshots</h1>
|
||||
<div class="card-group">
|
||||
${this._snapshots === undefined
|
||||
? undefined
|
||||
|
@ -87,7 +87,7 @@ class HassioHostInfo extends LitElement {
|
||||
${this.hostInfo.features.includes("network")
|
||||
? html` <ha-settings-row>
|
||||
<span slot="heading">
|
||||
IP address
|
||||
IP Address
|
||||
</span>
|
||||
<span slot="description">
|
||||
${primaryIpAddress}
|
||||
@ -103,7 +103,7 @@ class HassioHostInfo extends LitElement {
|
||||
|
||||
<ha-settings-row>
|
||||
<span slot="heading">
|
||||
Operating system
|
||||
Operating System
|
||||
</span>
|
||||
<span slot="description">
|
||||
${this.hostInfo.operating_system}
|
||||
@ -221,7 +221,7 @@ class HassioHostInfo extends LitElement {
|
||||
});
|
||||
} catch (err) {
|
||||
showAlertDialog(this, {
|
||||
title: "Failed to get Hardware list",
|
||||
title: "Failed to get hardware list",
|
||||
text: extractApiErrorMessage(err),
|
||||
});
|
||||
}
|
||||
@ -324,7 +324,7 @@ class HassioHostInfo extends LitElement {
|
||||
private async _changeHostnameClicked(): Promise<void> {
|
||||
const curHostname: string = this.hostInfo.hostname;
|
||||
const hostname = await showPromptDialog(this, {
|
||||
title: "Change hostname",
|
||||
title: "Change Hostname",
|
||||
inputLabel: "Please enter a new hostname:",
|
||||
inputType: "string",
|
||||
defaultValue: curHostname,
|
||||
|
@ -51,7 +51,7 @@ class HassioSupervisorInfo extends LitElement {
|
||||
</ha-settings-row>
|
||||
<ha-settings-row>
|
||||
<span slot="heading">
|
||||
Newest version
|
||||
Newest Version
|
||||
</span>
|
||||
<span slot="description">
|
||||
${this.supervisorInfo.version_latest}
|
||||
@ -98,7 +98,7 @@ class HassioSupervisorInfo extends LitElement {
|
||||
${this.supervisorInfo?.supported
|
||||
? html` <ha-settings-row three-line>
|
||||
<span slot="heading">
|
||||
Share diagnostics
|
||||
Share Diagnostics
|
||||
</span>
|
||||
<div slot="description" class="diagnostics-description">
|
||||
Share crash reports and diagnostic information.
|
||||
@ -135,7 +135,7 @@ class HassioSupervisorInfo extends LitElement {
|
||||
<div class="card-actions">
|
||||
<ha-progress-button
|
||||
@click=${this._supervisorReload}
|
||||
title="Reload parts of the supervisor."
|
||||
title="Reload parts of the supervisor"
|
||||
>
|
||||
Reload
|
||||
</ha-progress-button>
|
||||
@ -212,7 +212,7 @@ class HassioSupervisorInfo extends LitElement {
|
||||
button.progress = true;
|
||||
|
||||
const confirmed = await showConfirmationDialog(this, {
|
||||
title: "Update supervisor",
|
||||
title: "Update Supervisor",
|
||||
text: `Are you sure you want to update supervisor to version ${this.supervisorInfo.version_latest}?`,
|
||||
confirmText: "update",
|
||||
dismissText: "cancel",
|
||||
|
@ -76,7 +76,7 @@ class HassioSupervisorLog extends LitElement {
|
||||
${this.hass.userData?.showAdvanced
|
||||
? html`
|
||||
<paper-dropdown-menu
|
||||
label="Log provider"
|
||||
label="Log Provider"
|
||||
@iron-select=${this._setLogProvider}
|
||||
>
|
||||
<paper-listbox
|
||||
|
@ -41,29 +41,29 @@ class HassioSystemMetrics extends LitElement {
|
||||
const usedSpace = this._getUsedSpace(this.hostInfo);
|
||||
const metrics = [
|
||||
{
|
||||
description: "Core CPU usage",
|
||||
description: "Core CPU Usage",
|
||||
value: this._coreMetrics?.cpu_percent,
|
||||
},
|
||||
{
|
||||
description: "Core RAM usage",
|
||||
description: "Core RAM Usage",
|
||||
value: this._coreMetrics?.memory_percent,
|
||||
},
|
||||
{
|
||||
description: "Supervisor CPU usage",
|
||||
description: "Supervisor CPU Usage",
|
||||
value: this._supervisorMetrics?.cpu_percent,
|
||||
},
|
||||
{
|
||||
description: "Supervisor RAM usage",
|
||||
description: "Supervisor RAM Usage",
|
||||
value: this._supervisorMetrics?.memory_percent,
|
||||
},
|
||||
{
|
||||
description: "Used space",
|
||||
description: "Used Space",
|
||||
value: usedSpace,
|
||||
},
|
||||
];
|
||||
|
||||
return html`
|
||||
<ha-card header="System metrics">
|
||||
<ha-card header="System Metrics">
|
||||
<div class="card-content">
|
||||
${metrics.map((metric) =>
|
||||
this._renderMetric(metric.description, metric.value ?? 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user