Prevent config menu jump when cloud info loads (#15638)

Prevent config menu jump
This commit is contained in:
Bram Kragten 2023-02-28 17:21:52 +01:00 committed by GitHub
parent ea95fb98aa
commit a5541996d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -137,16 +137,17 @@ class HaConfigDashboard extends SubscribeMixin(LitElement) {
total: 0,
};
private _pages = memoizeOne((clouStatus, isLoaded) => {
private _pages = memoizeOne((cloudStatus, isCloudLoaded) => {
const pages: PageNavigation[] = [];
if (clouStatus && isLoaded) {
if (isCloudLoaded) {
pages.push({
component: "cloud",
path: "/config/cloud",
name: "Home Assistant Cloud",
info: this.cloudStatus,
info: cloudStatus,
iconPath: mdiCloudLock,
iconColor: "#3B808E",
translationKey: "cloud",
});
}
return [...pages, ...configSections.dashboard];

View File

@ -1395,6 +1395,9 @@
"about": {
"main": "About",
"secondary": "Version information, credits and more"
},
"cloud": {
"secondary": "Loading..."
}
},
"common": {