mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-27 04:52:56 +00:00
Remove expand all/collapse all options from overflow (#26837)
* remove expand all/collapse all options from overflow * ignore
This commit is contained in:
@@ -16,8 +16,6 @@ import {
|
||||
mdiStopCircleOutline,
|
||||
mdiTag,
|
||||
mdiTransitConnection,
|
||||
mdiUnfoldLessHorizontal,
|
||||
mdiUnfoldMoreHorizontal,
|
||||
} from "@mdi/js";
|
||||
import type { UnsubscribeFunc } from "home-assistant-js-websocket";
|
||||
import type { CSSResultGroup, PropertyValues, TemplateResult } from "lit";
|
||||
@@ -371,30 +369,6 @@ export class HaAutomationEditor extends PreventUnsavedMixin(
|
||||
<ha-svg-icon slot="graphic" .path=${mdiPlaylistEdit}></ha-svg-icon>
|
||||
</ha-list-item>
|
||||
|
||||
${!useBlueprint
|
||||
? html`
|
||||
<ha-list-item graphic="icon" @click=${this._collapseAll}>
|
||||
<ha-svg-icon
|
||||
slot="graphic"
|
||||
.path=${mdiUnfoldLessHorizontal}
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.automation.editor.collapse_all"
|
||||
)}
|
||||
</ha-list-item>
|
||||
|
||||
<ha-list-item graphic="icon" @click=${this._expandAll}>
|
||||
<ha-svg-icon
|
||||
slot="graphic"
|
||||
.path=${mdiUnfoldMoreHorizontal}
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.automation.editor.expand_all"
|
||||
)}
|
||||
</ha-list-item>
|
||||
`
|
||||
: nothing}
|
||||
|
||||
<li divider role="separator"></li>
|
||||
|
||||
<ha-list-item
|
||||
@@ -1152,10 +1126,12 @@ export class HaAutomationEditor extends PreventUnsavedMixin(
|
||||
return this._confirmUnsavedChanged();
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
private _collapseAll() {
|
||||
this._manualEditor?.collapseAll();
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
private _expandAll() {
|
||||
this._manualEditor?.expandAll();
|
||||
}
|
||||
|
||||
@@ -15,8 +15,6 @@ import {
|
||||
mdiRobotConfused,
|
||||
mdiTag,
|
||||
mdiTransitConnection,
|
||||
mdiUnfoldLessHorizontal,
|
||||
mdiUnfoldMoreHorizontal,
|
||||
} from "@mdi/js";
|
||||
import type { CSSResultGroup, PropertyValues, TemplateResult } from "lit";
|
||||
import { LitElement, css, html, nothing } from "lit";
|
||||
@@ -342,30 +340,6 @@ export class HaScriptEditor extends SubscribeMixin(
|
||||
<ha-svg-icon slot="graphic" .path=${mdiPlaylistEdit}></ha-svg-icon>
|
||||
</ha-list-item>
|
||||
|
||||
${!useBlueprint
|
||||
? html`
|
||||
<ha-list-item graphic="icon" @click=${this._collapseAll}>
|
||||
<ha-svg-icon
|
||||
slot="graphic"
|
||||
.path=${mdiUnfoldLessHorizontal}
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.automation.editor.collapse_all"
|
||||
)}
|
||||
</ha-list-item>
|
||||
|
||||
<ha-list-item graphic="icon" @click=${this._expandAll}>
|
||||
<ha-svg-icon
|
||||
slot="graphic"
|
||||
.path=${mdiUnfoldMoreHorizontal}
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.automation.editor.expand_all"
|
||||
)}
|
||||
</ha-list-item>
|
||||
`
|
||||
: nothing}
|
||||
|
||||
<li divider role="separator"></li>
|
||||
|
||||
<ha-list-item
|
||||
@@ -1061,10 +1035,12 @@ export class HaScriptEditor extends SubscribeMixin(
|
||||
return this._confirmUnsavedChanged();
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
private _collapseAll() {
|
||||
this._manualEditor?.collapseAll();
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
private _expandAll() {
|
||||
this._manualEditor?.expandAll();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user