mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 02:06:42 +00:00
Add support for my backup links (#12172)
This commit is contained in:
parent
edc15940a2
commit
11696c566a
@ -117,6 +117,10 @@ const REDIRECTS: Redirects = {
|
|||||||
component: "lovelace",
|
component: "lovelace",
|
||||||
redirect: "/config/lovelace/resources",
|
redirect: "/config/lovelace/resources",
|
||||||
},
|
},
|
||||||
|
backup: {
|
||||||
|
component: "backup",
|
||||||
|
redirect: "/config/backup",
|
||||||
|
},
|
||||||
people: {
|
people: {
|
||||||
component: "person",
|
component: "person",
|
||||||
redirect: "/config/person",
|
redirect: "/config/person",
|
||||||
@ -184,6 +188,13 @@ class HaPanelMy extends LitElement {
|
|||||||
super.connectedCallback();
|
super.connectedCallback();
|
||||||
const path = this.route.path.substring(1);
|
const path = this.route.path.substring(1);
|
||||||
|
|
||||||
|
if (path === "backup" && isComponentLoaded(this.hass, "hassio")) {
|
||||||
|
navigate("/hassio/backups", {
|
||||||
|
replace: true,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (path.startsWith("supervisor")) {
|
if (path.startsWith("supervisor")) {
|
||||||
if (!isComponentLoaded(this.hass, "hassio")) {
|
if (!isComponentLoaded(this.hass, "hassio")) {
|
||||||
this._error = "no_supervisor";
|
this._error = "no_supervisor";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user