diff --git a/src/panels/config/labels/ha-config-labels.ts b/src/panels/config/labels/ha-config-labels.ts index 9e779c6384..193dc4fc06 100644 --- a/src/panels/config/labels/ha-config-labels.ts +++ b/src/panels/config/labels/ha-config-labels.ts @@ -1,4 +1,4 @@ -import { mdiHelpCircle, mdiPlus } from "@mdi/js"; +import { mdiDelete, mdiHelpCircle, mdiPlus } from "@mdi/js"; import { LitElement, PropertyValues, html, nothing } from "lit"; import { customElement, property, state } from "lit/decorators"; import memoizeOne from "memoize-one"; @@ -11,6 +11,7 @@ import { import "../../../components/ha-fab"; import "../../../components/ha-icon-button"; import "../../../components/ha-relative-time"; +import "../../../components/ha-icon-overflow-menu"; import { LabelRegistryEntry, LabelRegistryEntryMutableParams, @@ -71,6 +72,26 @@ export class HaConfigLabels extends LitElement { filterable: true, grows: true, }, + actions: { + title: "", + width: "64px", + type: "overflow-menu", + template: (label) => html` + this._removeLabel(label), + warning: true, + }, + ]} + > + + `, + }, }; return columns; }); @@ -189,6 +210,7 @@ export class HaConfigLabels extends LitElement { }), dismissText: this.hass!.localize("ui.common.cancel"), confirmText: this.hass!.localize("ui.common.remove"), + destructive: true, })) ) { return false;