mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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 = [
|
||||
{
|
||||
component: "lovelace",
|
||||
path: "/config/lovelace/dashboards",
|
||||
translationKey: "ui.panel.config.lovelace.dashboards.caption",
|
||||
iconPath: mdiViewDashboard,
|
||||
},
|
||||
];
|
||||
|
||||
export const lovelaceResourcesTabs = [
|
||||
{
|
||||
path: "/config/lovelace/resources",
|
||||
translationKey: "ui.panel.config.lovelace.resources.caption",
|
||||
iconPath: mdiViewDashboard,
|
||||
},
|
||||
];
|
||||
|
||||
@customElement("ha-config-lovelace")
|
||||
class HaConfigLovelace extends HassRouterPage {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
@ -34,7 +34,7 @@ import "../../../../layouts/hass-tabs-subpage-data-table";
|
||||
import { haStyle } from "../../../../resources/styles";
|
||||
import { HomeAssistant, Route } from "../../../../types";
|
||||
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";
|
||||
|
||||
@customElement("ha-config-lovelace-resources")
|
||||
@ -117,7 +117,7 @@ export class HaConfigLovelaceRescources extends LitElement {
|
||||
.hass=${this.hass}
|
||||
.narrow=${this.narrow}
|
||||
.route=${this.route}
|
||||
.tabs=${lovelaceTabs}
|
||||
.tabs=${lovelaceResourcesTabs}
|
||||
.columns=${this._columns(this.hass.language)}
|
||||
.data=${this._resources}
|
||||
.noDataText=${this.hass.localize(
|
||||
|
Loading…
x
Reference in New Issue
Block a user