mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Prevent config menu jump when cloud info loads (#15638)
Prevent config menu jump
This commit is contained in:
parent
ea95fb98aa
commit
a5541996d7
@ -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];
|
||||
|
@ -1395,6 +1395,9 @@
|
||||
"about": {
|
||||
"main": "About",
|
||||
"secondary": "Version information, credits and more"
|
||||
},
|
||||
"cloud": {
|
||||
"secondary": "Loading..."
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user