mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-26 22: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",
|
component: "history",
|
||||||
redirect: "/history",
|
redirect: "/history",
|
||||||
},
|
},
|
||||||
|
media_browser: {
|
||||||
|
component: "media_source",
|
||||||
|
redirect: "/media-browser",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ParamType = "url" | "string";
|
export type ParamType = "url" | "string";
|
||||||
@ -178,7 +182,7 @@ class HaPanelMy extends LitElement {
|
|||||||
|
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
super.connectedCallback();
|
super.connectedCallback();
|
||||||
const path = this.route.path.substr(1);
|
const path = this.route.path.substring(1);
|
||||||
|
|
||||||
if (path.startsWith("supervisor")) {
|
if (path.startsWith("supervisor")) {
|
||||||
if (!isComponentLoaded(this.hass, "hassio")) {
|
if (!isComponentLoaded(this.hass, "hassio")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user