mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Default view (#1349)
* Do not rebuild config twice on tab change * Allow setting default page
This commit is contained in:
parent
20e92893e0
commit
654e74294d
@ -111,7 +111,7 @@ class HomeAssistantMain extends NavigateMixin(EventsMixin(PolymerElement)) {
|
||||
super.connectedCallback();
|
||||
window.removeInitMsg();
|
||||
if (document.location.pathname === '/') {
|
||||
this.navigate('/states', true);
|
||||
this.navigate(`/${localStorage.defaultPage || 'states'}`, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -149,7 +149,6 @@ class HUIRoot extends NavigateMixin(EventsMixin(PolymerElement)) {
|
||||
if (index !== this._curView) {
|
||||
const id = this.config.views[index].id || index;
|
||||
this.navigate(`/lovelace/${id}`);
|
||||
this._selectView(index);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user