mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-12 20:06:33 +00:00
Fix cloud webhooks (#7261)
This commit is contained in:
parent
919c86796f
commit
80b7c840e2
@ -89,7 +89,7 @@ export class CloudWebhooks extends LitElement {
|
|||||||
`
|
`
|
||||||
: this._localHooks.map(
|
: this._localHooks.map(
|
||||||
(entry) => html`
|
(entry) => html`
|
||||||
<ha-settings-row .narrow=${this.narrow}>
|
<ha-settings-row .narrow=${this.narrow} .entry=${entry}>
|
||||||
<span slot="heading">
|
<span slot="heading">
|
||||||
${entry.name}
|
${entry.name}
|
||||||
${entry.domain !== entry.name.toLowerCase()
|
${entry.domain !== entry.name.toLowerCase()
|
||||||
@ -157,7 +157,7 @@ export class CloudWebhooks extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _enableWebhook(ev: MouseEvent) {
|
private async _enableWebhook(ev: MouseEvent) {
|
||||||
const entry = (ev.currentTarget as any).parentElement.entry;
|
const entry = (ev.currentTarget as any).parentElement!.entry as Webhook;
|
||||||
this._progress = [...this._progress, entry.webhook_id];
|
this._progress = [...this._progress, entry.webhook_id];
|
||||||
let updatedWebhook;
|
let updatedWebhook;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user