mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Blueprints: show error in alert dialog when clicked (#16684)
This commit is contained in:
parent
b586210ff1
commit
25986f239e
@ -321,6 +321,12 @@ class HaBlueprintOverview extends LitElement {
|
|||||||
(b) => b.path === ev.detail.id
|
(b) => b.path === ev.detail.id
|
||||||
);
|
);
|
||||||
if (blueprint.error) {
|
if (blueprint.error) {
|
||||||
|
showAlertDialog(this, {
|
||||||
|
title: this.hass.localize("ui.panel.config.blueprint.overview.error", {
|
||||||
|
path: blueprint.path,
|
||||||
|
}),
|
||||||
|
text: blueprint.name,
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._createNew(blueprint);
|
this._createNew(blueprint);
|
||||||
|
@ -2637,6 +2637,7 @@
|
|||||||
"automation": "automations",
|
"automation": "automations",
|
||||||
"script": "scripts"
|
"script": "scripts"
|
||||||
},
|
},
|
||||||
|
"error": "{path} could not be loaded",
|
||||||
"blueprint_in_use_title": "This blueprint is in use, and can not be deleted",
|
"blueprint_in_use_title": "This blueprint is in use, and can not be deleted",
|
||||||
"blueprint_in_use_text": "Please remove all below {type} that use this blueprint before deleting it. {list}",
|
"blueprint_in_use_text": "Please remove all below {type} that use this blueprint before deleting it. {list}",
|
||||||
"blueprint_in_use_view": "view {type}",
|
"blueprint_in_use_view": "view {type}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user