mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Include blueprint type in row id key (#16998)
This commit is contained in:
parent
152ca75499
commit
655cf053c7
@ -96,6 +96,7 @@ class HaBlueprintOverview extends LitElement {
|
|||||||
type,
|
type,
|
||||||
error: true,
|
error: true,
|
||||||
path,
|
path,
|
||||||
|
fullpath: `${type}/${path}`,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
result.push({
|
result.push({
|
||||||
@ -103,6 +104,7 @@ class HaBlueprintOverview extends LitElement {
|
|||||||
type,
|
type,
|
||||||
error: false,
|
error: false,
|
||||||
path,
|
path,
|
||||||
|
fullpath: `${type}/${path}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -154,6 +156,10 @@ class HaBlueprintOverview extends LitElement {
|
|||||||
direction: "asc",
|
direction: "asc",
|
||||||
width: "25%",
|
width: "25%",
|
||||||
},
|
},
|
||||||
|
fullpath: {
|
||||||
|
title: "fullpath",
|
||||||
|
hidden: true,
|
||||||
|
},
|
||||||
actions: {
|
actions: {
|
||||||
title: "",
|
title: "",
|
||||||
width: this.narrow ? undefined : "10%",
|
width: this.narrow ? undefined : "10%",
|
||||||
@ -233,7 +239,7 @@ class HaBlueprintOverview extends LitElement {
|
|||||||
.tabs=${configSections.automations}
|
.tabs=${configSections.automations}
|
||||||
.columns=${this._columns(this.narrow, this.hass.language)}
|
.columns=${this._columns(this.narrow, this.hass.language)}
|
||||||
.data=${this._processedBlueprints(this.blueprints)}
|
.data=${this._processedBlueprints(this.blueprints)}
|
||||||
id="path"
|
id="fullpath"
|
||||||
.noDataText=${this.hass.localize(
|
.noDataText=${this.hass.localize(
|
||||||
"ui.panel.config.blueprint.overview.no_blueprints"
|
"ui.panel.config.blueprint.overview.no_blueprints"
|
||||||
)}
|
)}
|
||||||
@ -318,7 +324,7 @@ class HaBlueprintOverview extends LitElement {
|
|||||||
|
|
||||||
private _handleRowClicked(ev: HASSDomEvent<RowClickedEvent>) {
|
private _handleRowClicked(ev: HASSDomEvent<RowClickedEvent>) {
|
||||||
const blueprint = this._processedBlueprints(this.blueprints).find(
|
const blueprint = this._processedBlueprints(this.blueprints).find(
|
||||||
(b) => b.path === ev.detail.id
|
(b) => b.fullpath === ev.detail.id
|
||||||
);
|
);
|
||||||
if (blueprint.error) {
|
if (blueprint.error) {
|
||||||
showAlertDialog(this, {
|
showAlertDialog(this, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user