mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Sort discoveries by title on integration page (#25578)
This commit is contained in:
parent
81ba2db93a
commit
f563146165
@ -275,8 +275,14 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
this.configEntriesInProgress
|
this.configEntriesInProgress
|
||||||
);
|
);
|
||||||
|
|
||||||
const discoveryFlows = configEntriesInProgress.filter(
|
const discoveryFlows = configEntriesInProgress
|
||||||
(flow) => !ATTENTION_SOURCES.includes(flow.context.source)
|
.filter((flow) => !ATTENTION_SOURCES.includes(flow.context.source))
|
||||||
|
.sort((a, b) =>
|
||||||
|
caseInsensitiveStringCompare(
|
||||||
|
a.localized_title || "zzz",
|
||||||
|
b.localized_title || "zzz",
|
||||||
|
this.hass.locale.language
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
const attentionFlows = configEntriesInProgress.filter((flow) =>
|
const attentionFlows = configEntriesInProgress.filter((flow) =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user