mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 20:56:36 +00:00
Allow ingress links to have more data
This commit is contained in:
parent
e87a2b36cf
commit
d225b6aad0
@ -128,10 +128,12 @@ class HassioIngressView extends LitElement {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const addon = this.route.path.substr(1);
|
const addon = this.route.path.substr(1).split("/")[0];
|
||||||
|
|
||||||
const oldRoute = changedProps.get("route") as this["route"] | undefined;
|
const oldRoute = changedProps.get("route") as this["route"] | undefined;
|
||||||
const oldAddon = oldRoute ? oldRoute.path.substr(1) : undefined;
|
const oldAddon = oldRoute
|
||||||
|
? oldRoute.path.substr(1).split("/")[0]
|
||||||
|
: undefined;
|
||||||
|
|
||||||
if (addon && addon !== oldAddon) {
|
if (addon && addon !== oldAddon) {
|
||||||
this._fetchData(addon);
|
this._fetchData(addon);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user