mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Improve map/zone navigation (#19740)
* Improve map/zone navigation * dont remove tabs
This commit is contained in:
parent
dd8c1d359c
commit
fb3c94f403
@ -58,6 +58,8 @@ export class HaConfigZone extends SubscribeMixin(LitElement) {
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@state() private _searchParms = new URLSearchParams(window.location.search);
|
||||
|
||||
@state() private _storageItems?: Zone[];
|
||||
|
||||
@state() private _stateItems?: HassEntity[];
|
||||
@ -219,7 +221,9 @@ export class HaConfigZone extends SubscribeMixin(LitElement) {
|
||||
.hass=${this.hass}
|
||||
.narrow=${this.narrow}
|
||||
.route=${this.route}
|
||||
back-path="/config"
|
||||
.backPath=${this._searchParms.has("historyBack")
|
||||
? undefined
|
||||
: "/config"}
|
||||
.tabs=${configSections.areas}
|
||||
>
|
||||
${this.narrow
|
||||
|
@ -46,7 +46,7 @@ class HaPanelMap extends LitElement {
|
||||
}
|
||||
|
||||
private _openZonesEditor() {
|
||||
navigate("/config/zone");
|
||||
navigate("/config/zone?historyBack=1");
|
||||
}
|
||||
|
||||
public willUpdate(changedProps: PropertyValues) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user