mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-15 22:10:20 +00:00
Allow automation/script delete (#3194)
This commit is contained in:
@@ -25,6 +25,7 @@ import { haStyle } from "../../../resources/styles";
|
||||
import { HomeAssistant } from "../../../types";
|
||||
import { triggerScript } from "../../../data/script";
|
||||
import { showToast } from "../../../util/toast";
|
||||
import { repeat } from "lit-html/directives/repeat";
|
||||
|
||||
@customElement("ha-script-picker")
|
||||
class HaScriptPicker extends LitElement {
|
||||
@@ -56,7 +57,9 @@ class HaScriptPicker extends LitElement {
|
||||
<p>We couldn't find any scripts.</p>
|
||||
</div>
|
||||
`
|
||||
: this.scripts.map(
|
||||
: repeat(
|
||||
this.scripts,
|
||||
(script) => script.entity_id,
|
||||
(script) => html`
|
||||
<div class="script">
|
||||
<paper-icon-button
|
||||
|
||||
Reference in New Issue
Block a user