mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Remember selection "Don't Group" in data-tables (#23836)
This commit is contained in:
parent
1025f73c36
commit
b3141a0653
@ -538,7 +538,7 @@ class HaAutomationPicker extends SubscribeMixin(LitElement) {
|
|||||||
this.hass.localize,
|
this.hass.localize,
|
||||||
this.hass.locale
|
this.hass.locale
|
||||||
)}
|
)}
|
||||||
.initialGroupColumn=${this._activeGrouping || "category"}
|
.initialGroupColumn=${this._activeGrouping ?? "category"}
|
||||||
.initialCollapsedGroups=${this._activeCollapsed}
|
.initialCollapsedGroups=${this._activeCollapsed}
|
||||||
.initialSorting=${this._activeSorting}
|
.initialSorting=${this._activeSorting}
|
||||||
.columnOrder=${this._activeColumnOrder}
|
.columnOrder=${this._activeColumnOrder}
|
||||||
@ -1417,7 +1417,7 @@ ${rejected
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _handleGroupingChanged(ev: CustomEvent) {
|
private _handleGroupingChanged(ev: CustomEvent) {
|
||||||
this._activeGrouping = ev.detail.value;
|
this._activeGrouping = ev.detail.value ?? "";
|
||||||
}
|
}
|
||||||
|
|
||||||
private _handleCollapseChanged(ev: CustomEvent) {
|
private _handleCollapseChanged(ev: CustomEvent) {
|
||||||
|
@ -656,7 +656,7 @@ export class HaConfigHelpers extends SubscribeMixin(LitElement) {
|
|||||||
).length}
|
).length}
|
||||||
.columns=${this._columns(this.hass.localize)}
|
.columns=${this._columns(this.hass.localize)}
|
||||||
.data=${helpers}
|
.data=${helpers}
|
||||||
.initialGroupColumn=${this._activeGrouping || "category"}
|
.initialGroupColumn=${this._activeGrouping ?? "category"}
|
||||||
.initialCollapsedGroups=${this._activeCollapsed}
|
.initialCollapsedGroups=${this._activeCollapsed}
|
||||||
.initialSorting=${this._activeSorting}
|
.initialSorting=${this._activeSorting}
|
||||||
.columnOrder=${this._activeColumnOrder}
|
.columnOrder=${this._activeColumnOrder}
|
||||||
@ -1264,7 +1264,7 @@ ${rejected
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _handleGroupingChanged(ev: CustomEvent) {
|
private _handleGroupingChanged(ev: CustomEvent) {
|
||||||
this._activeGrouping = ev.detail.value;
|
this._activeGrouping = ev.detail.value ?? "";
|
||||||
}
|
}
|
||||||
|
|
||||||
private _handleCollapseChanged(ev: CustomEvent) {
|
private _handleCollapseChanged(ev: CustomEvent) {
|
||||||
|
@ -552,7 +552,7 @@ class HaSceneDashboard extends SubscribeMixin(LitElement) {
|
|||||||
).length}
|
).length}
|
||||||
.columns=${this._columns(this.hass.localize)}
|
.columns=${this._columns(this.hass.localize)}
|
||||||
id="entity_id"
|
id="entity_id"
|
||||||
.initialGroupColumn=${this._activeGrouping || "category"}
|
.initialGroupColumn=${this._activeGrouping ?? "category"}
|
||||||
.initialCollapsedGroups=${this._activeCollapsed}
|
.initialCollapsedGroups=${this._activeCollapsed}
|
||||||
.initialSorting=${this._activeSorting}
|
.initialSorting=${this._activeSorting}
|
||||||
.columnOrder=${this._activeColumnOrder}
|
.columnOrder=${this._activeColumnOrder}
|
||||||
@ -1163,7 +1163,7 @@ ${rejected
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _handleGroupingChanged(ev: CustomEvent) {
|
private _handleGroupingChanged(ev: CustomEvent) {
|
||||||
this._activeGrouping = ev.detail.value;
|
this._activeGrouping = ev.detail.value ?? "";
|
||||||
}
|
}
|
||||||
|
|
||||||
private _handleCollapseChanged(ev: CustomEvent) {
|
private _handleCollapseChanged(ev: CustomEvent) {
|
||||||
|
@ -527,7 +527,7 @@ class HaScriptPicker extends SubscribeMixin(LitElement) {
|
|||||||
{ number: scripts.length }
|
{ number: scripts.length }
|
||||||
)}
|
)}
|
||||||
has-filters
|
has-filters
|
||||||
.initialGroupColumn=${this._activeGrouping || "category"}
|
.initialGroupColumn=${this._activeGrouping ?? "category"}
|
||||||
.initialCollapsedGroups=${this._activeCollapsed}
|
.initialCollapsedGroups=${this._activeCollapsed}
|
||||||
.initialSorting=${this._activeSorting}
|
.initialSorting=${this._activeSorting}
|
||||||
.columnOrder=${this._activeColumnOrder}
|
.columnOrder=${this._activeColumnOrder}
|
||||||
@ -1255,7 +1255,7 @@ ${rejected
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _handleGroupingChanged(ev: CustomEvent) {
|
private _handleGroupingChanged(ev: CustomEvent) {
|
||||||
this._activeGrouping = ev.detail.value;
|
this._activeGrouping = ev.detail.value ?? "";
|
||||||
}
|
}
|
||||||
|
|
||||||
private _handleCollapseChanged(ev: CustomEvent) {
|
private _handleCollapseChanged(ev: CustomEvent) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user