mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Update dashboard resources title to reflect translations (#19641)
* Update dashboard resources title to reflect translations * Update dashboard resources title to reflect translations
This commit is contained in:
parent
32c403d069
commit
d5f8231f97
@ -8,13 +8,20 @@ import { HomeAssistant } from "../../../types";
|
|||||||
|
|
||||||
export const lovelaceTabs = [
|
export const lovelaceTabs = [
|
||||||
{
|
{
|
||||||
component: "lovelace",
|
|
||||||
path: "/config/lovelace/dashboards",
|
path: "/config/lovelace/dashboards",
|
||||||
translationKey: "ui.panel.config.lovelace.dashboards.caption",
|
translationKey: "ui.panel.config.lovelace.dashboards.caption",
|
||||||
iconPath: mdiViewDashboard,
|
iconPath: mdiViewDashboard,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export const lovelaceResourcesTabs = [
|
||||||
|
{
|
||||||
|
path: "/config/lovelace/resources",
|
||||||
|
translationKey: "ui.panel.config.lovelace.resources.caption",
|
||||||
|
iconPath: mdiViewDashboard,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
@customElement("ha-config-lovelace")
|
@customElement("ha-config-lovelace")
|
||||||
class HaConfigLovelace extends HassRouterPage {
|
class HaConfigLovelace extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
@ -34,7 +34,7 @@ import "../../../../layouts/hass-tabs-subpage-data-table";
|
|||||||
import { haStyle } from "../../../../resources/styles";
|
import { haStyle } from "../../../../resources/styles";
|
||||||
import { HomeAssistant, Route } from "../../../../types";
|
import { HomeAssistant, Route } from "../../../../types";
|
||||||
import { loadLovelaceResources } from "../../../lovelace/common/load-resources";
|
import { loadLovelaceResources } from "../../../lovelace/common/load-resources";
|
||||||
import { lovelaceTabs } from "../ha-config-lovelace";
|
import { lovelaceResourcesTabs } from "../ha-config-lovelace";
|
||||||
import { showResourceDetailDialog } from "./show-dialog-lovelace-resource-detail";
|
import { showResourceDetailDialog } from "./show-dialog-lovelace-resource-detail";
|
||||||
|
|
||||||
@customElement("ha-config-lovelace-resources")
|
@customElement("ha-config-lovelace-resources")
|
||||||
@ -117,7 +117,7 @@ export class HaConfigLovelaceRescources extends LitElement {
|
|||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.narrow=${this.narrow}
|
.narrow=${this.narrow}
|
||||||
.route=${this.route}
|
.route=${this.route}
|
||||||
.tabs=${lovelaceTabs}
|
.tabs=${lovelaceResourcesTabs}
|
||||||
.columns=${this._columns(this.hass.language)}
|
.columns=${this._columns(this.hass.language)}
|
||||||
.data=${this._resources}
|
.data=${this._resources}
|
||||||
.noDataText=${this.hass.localize(
|
.noDataText=${this.hass.localize(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user