mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Fix label filters from URL (#22447)
This commit is contained in:
parent
f05c204da3
commit
4669decfd0
@ -223,8 +223,9 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) {
|
|||||||
private _setFiltersFromUrl() {
|
private _setFiltersFromUrl() {
|
||||||
const domain = this._searchParms.get("domain");
|
const domain = this._searchParms.get("domain");
|
||||||
const configEntry = this._searchParms.get("config_entry");
|
const configEntry = this._searchParms.get("config_entry");
|
||||||
|
const label = this._searchParms.has("label");
|
||||||
|
|
||||||
if (!domain && !configEntry) {
|
if (!domain && !configEntry && !label) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -247,11 +248,8 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) {
|
|||||||
items: undefined,
|
items: undefined,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this._searchParms.has("label")) {
|
|
||||||
this._filterLabel();
|
this._filterLabel();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private _filterLabel() {
|
private _filterLabel() {
|
||||||
const label = this._searchParms.get("label");
|
const label = this._searchParms.get("label");
|
||||||
|
@ -1013,8 +1013,9 @@ ${
|
|||||||
private _setFiltersFromUrl() {
|
private _setFiltersFromUrl() {
|
||||||
const domain = this._searchParms.get("domain");
|
const domain = this._searchParms.get("domain");
|
||||||
const configEntry = this._searchParms.get("config_entry");
|
const configEntry = this._searchParms.get("config_entry");
|
||||||
|
const label = this._searchParms.has("label");
|
||||||
|
|
||||||
if (!domain && !configEntry) {
|
if (!domain && !configEntry && !label) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1025,11 +1026,8 @@ ${
|
|||||||
"ha-filter-integrations": domain ? [domain] : [],
|
"ha-filter-integrations": domain ? [domain] : [],
|
||||||
config_entry: configEntry ? [configEntry] : [],
|
config_entry: configEntry ? [configEntry] : [],
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this._searchParms.has("label")) {
|
|
||||||
this._filterLabel();
|
this._filterLabel();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private _filterLabel() {
|
private _filterLabel() {
|
||||||
const label = this._searchParms.get("label");
|
const label = this._searchParms.get("label");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user