From 0a413cba03babde92dad428893d33db1e8692bbb Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 12 Dec 2024 10:00:38 +0100 Subject: [PATCH] Fix more dialogs (#23273) * Remove unneeded close dialog calls * more --- .../ha-voice-command-dialog.ts | 2 +- .../calendar/dialog-calendar-event-detail.ts | 8 ++-- .../config/person/dialog-person-detail.ts | 47 +++++++++---------- .../dialog-voice-assistant-pipeline-detail.ts | 6 +-- 4 files changed, 28 insertions(+), 35 deletions(-) diff --git a/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts b/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts index 1bfa890e9556..cdd2c02ae546 100644 --- a/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts +++ b/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts @@ -142,7 +142,7 @@ export class HaVoiceCommandDialog extends LitElement { ${this.hass.user?.is_admin ? html`
  • ${this.hass.localize( "ui.dialogs.voice_command.manage_assistants" )} { + callback?.(); + }); + this._userId = undefined; + } + this._params = undefined; + fireEvent(this, "dialog-closed", { dialog: this.localName }); + } + protected render() { if (!this._params) { return nothing; @@ -109,7 +125,7 @@ class DialogPersonDetail extends LitElement { return html` ${this._renderUserFields()} - ${this._deviceTrackersAvailable(this.hass) + ${!this._deviceTrackersAvailable(this.hass) ? html`

    ${this.hass.localize( @@ -205,10 +221,7 @@ class DialogPersonDetail extends LitElement { >

  • - + ${this.hass!.localize( "ui.panel.config.person.detail.link_integrations_page" )} + ${this.hass.localize( "ui.panel.config.voice_assistants.assistants.pipeline.detail.no_cloud_action"