mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +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",
|
||||
redirect: "/config/lovelace/resources",
|
||||
},
|
||||
backup: {
|
||||
component: "backup",
|
||||
redirect: "/config/backup",
|
||||
},
|
||||
people: {
|
||||
component: "person",
|
||||
redirect: "/config/person",
|
||||
@ -184,6 +188,13 @@ class HaPanelMy extends LitElement {
|
||||
super.connectedCallback();
|
||||
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 (!isComponentLoaded(this.hass, "hassio")) {
|
||||
this._error = "no_supervisor";
|
||||
|
Loading…
x
Reference in New Issue
Block a user