mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 21:37:21 +00:00
Add support for the media browser My link (#11757)
This commit is contained in:
parent
72b5721c88
commit
a14d75deec
@ -155,6 +155,10 @@ const REDIRECTS: Redirects = {
|
||||
component: "history",
|
||||
redirect: "/history",
|
||||
},
|
||||
media_browser: {
|
||||
component: "media_source",
|
||||
redirect: "/media-browser",
|
||||
},
|
||||
};
|
||||
|
||||
export type ParamType = "url" | "string";
|
||||
@ -178,7 +182,7 @@ class HaPanelMy extends LitElement {
|
||||
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
const path = this.route.path.substr(1);
|
||||
const path = this.route.path.substring(1);
|
||||
|
||||
if (path.startsWith("supervisor")) {
|
||||
if (!isComponentLoaded(this.hass, "hassio")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user