mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 22:07:20 +00:00
Replace mwc-icon-button
with ha-icon-button
in automation picker (#10858)
This commit is contained in:
parent
b730676914
commit
35e9687170
@ -56,6 +56,7 @@ export class HaRelatedFilterButtonMenu extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
@click=${this._handleClick}
|
@click=${this._handleClick}
|
||||||
|
.label=${this.hass.localize("ui.components.related-filter-menu.filter")}
|
||||||
.path=${mdiFilterVariant}
|
.path=${mdiFilterVariant}
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
<mwc-menu-surface
|
<mwc-menu-surface
|
||||||
|
@ -29,7 +29,7 @@ export class HaIconOverflowMenu extends LitElement {
|
|||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
${this.narrow
|
${this.narrow
|
||||||
? html` <!-- Collapsed Representation for Small Screens -->
|
? html` <!-- Collapsed representation for small screens -->
|
||||||
<ha-button-menu
|
<ha-button-menu
|
||||||
@click=${this._handleIconOverflowMenuOpened}
|
@click=${this._handleIconOverflowMenuOpened}
|
||||||
@closed=${this._handleIconOverflowMenuClosed}
|
@closed=${this._handleIconOverflowMenuClosed}
|
||||||
@ -59,8 +59,7 @@ export class HaIconOverflowMenu extends LitElement {
|
|||||||
)}
|
)}
|
||||||
</ha-button-menu>`
|
</ha-button-menu>`
|
||||||
: html`
|
: html`
|
||||||
<!-- Icon Representation for Big Screens -->
|
<!-- Icon representation for big screens -->
|
||||||
|
|
||||||
${this.items.map((item) =>
|
${this.items.map((item) =>
|
||||||
item.narrowOnly
|
item.narrowOnly
|
||||||
? ""
|
? ""
|
||||||
@ -70,13 +69,12 @@ export class HaIconOverflowMenu extends LitElement {
|
|||||||
${item.tooltip}
|
${item.tooltip}
|
||||||
</paper-tooltip>`
|
</paper-tooltip>`
|
||||||
: ""}
|
: ""}
|
||||||
<mwc-icon-button
|
<ha-icon-button
|
||||||
@click=${item.action}
|
@click=${item.action}
|
||||||
.label=${item.label}
|
.label=${item.label}
|
||||||
|
.path=${item.path}
|
||||||
.disabled=${item.disabled}
|
.disabled=${item.disabled}
|
||||||
>
|
></ha-icon-button>
|
||||||
<ha-svg-icon .path=${item.path}></ha-svg-icon>
|
|
||||||
</mwc-icon-button>
|
|
||||||
</div> `
|
</div> `
|
||||||
)}
|
)}
|
||||||
`}
|
`}
|
||||||
|
@ -298,6 +298,7 @@
|
|||||||
"not_now": "Not now",
|
"not_now": "Not now",
|
||||||
"skip": "Skip",
|
"skip": "Skip",
|
||||||
"menu": "Menu",
|
"menu": "Menu",
|
||||||
|
"overflow_menu": "Overflow menu",
|
||||||
"help": "Help",
|
"help": "Help",
|
||||||
"successfully_saved": "Successfully saved",
|
"successfully_saved": "Successfully saved",
|
||||||
"successfully_deleted": "Successfully deleted",
|
"successfully_deleted": "Successfully deleted",
|
||||||
@ -422,6 +423,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"related-filter-menu": {
|
"related-filter-menu": {
|
||||||
|
"filter": "Filter",
|
||||||
"filter_by_entity": "Filter by entity",
|
"filter_by_entity": "Filter by entity",
|
||||||
"filter_by_device": "Filter by device",
|
"filter_by_device": "Filter by device",
|
||||||
"filter_by_area": "Filter by area",
|
"filter_by_area": "Filter by area",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user