mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-12 03:46:34 +00:00
Fix voice debug link (#23214)
This commit is contained in:
parent
c78d371a9c
commit
8390c6e29b
@ -42,6 +42,7 @@ import { showVoiceAssistantPipelineDetailDialog } from "./show-dialog-voice-assi
|
|||||||
import { showVoiceCommandDialog } from "../../../dialogs/voice-command-dialog/show-ha-voice-command-dialog";
|
import { showVoiceCommandDialog } from "../../../dialogs/voice-command-dialog/show-ha-voice-command-dialog";
|
||||||
import { stopPropagation } from "../../../common/dom/stop_propagation";
|
import { stopPropagation } from "../../../common/dom/stop_propagation";
|
||||||
import { computeDomain } from "../../../common/entity/compute_domain";
|
import { computeDomain } from "../../../common/entity/compute_domain";
|
||||||
|
import { navigate } from "../../../common/navigate";
|
||||||
|
|
||||||
@customElement("assist-pref")
|
@customElement("assist-pref")
|
||||||
export class AssistPref extends LitElement {
|
export class AssistPref extends LitElement {
|
||||||
@ -159,14 +160,16 @@ export class AssistPref extends LitElement {
|
|||||||
)}
|
)}
|
||||||
<ha-svg-icon slot="graphic" .path=${mdiStar}></ha-svg-icon>
|
<ha-svg-icon slot="graphic" .path=${mdiStar}></ha-svg-icon>
|
||||||
</ha-list-item>
|
</ha-list-item>
|
||||||
<a href=${`/config/voice-assistants/debug/${pipeline.id}`}>
|
<ha-list-item
|
||||||
<ha-list-item graphic="icon">
|
graphic="icon"
|
||||||
${this.hass.localize(
|
.id=${pipeline.id}
|
||||||
"ui.panel.config.voice_assistants.assistants.pipeline.detail.debug"
|
@request-selected=${this._debugPipeline}
|
||||||
)}
|
>
|
||||||
<ha-svg-icon slot="graphic" .path=${mdiBug}></ha-svg-icon>
|
${this.hass.localize(
|
||||||
</ha-list-item>
|
"ui.panel.config.voice_assistants.assistants.pipeline.detail.debug"
|
||||||
</a>
|
)}
|
||||||
|
<ha-svg-icon slot="graphic" .path=${mdiBug}></ha-svg-icon>
|
||||||
|
</ha-list-item>
|
||||||
<ha-list-item
|
<ha-list-item
|
||||||
class="danger"
|
class="danger"
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
@ -233,6 +236,11 @@ export class AssistPref extends LitElement {
|
|||||||
this._preferred = id;
|
this._preferred = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async _debugPipeline(ev) {
|
||||||
|
const id = ev.currentTarget.id as string;
|
||||||
|
navigate(`/config/voice-assistants/debug/${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
private async _deletePipeline(ev) {
|
private async _deletePipeline(ev) {
|
||||||
const id = ev.currentTarget.id as string;
|
const id = ev.currentTarget.id as string;
|
||||||
if (this._preferred === id) {
|
if (this._preferred === id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user