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 { stopPropagation } from "../../../common/dom/stop_propagation";
|
||||
import { computeDomain } from "../../../common/entity/compute_domain";
|
||||
import { navigate } from "../../../common/navigate";
|
||||
|
||||
@customElement("assist-pref")
|
||||
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-list-item>
|
||||
<a href=${`/config/voice-assistants/debug/${pipeline.id}`}>
|
||||
<ha-list-item graphic="icon">
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.assistants.pipeline.detail.debug"
|
||||
)}
|
||||
<ha-svg-icon slot="graphic" .path=${mdiBug}></ha-svg-icon>
|
||||
</ha-list-item>
|
||||
</a>
|
||||
<ha-list-item
|
||||
graphic="icon"
|
||||
.id=${pipeline.id}
|
||||
@request-selected=${this._debugPipeline}
|
||||
>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.assistants.pipeline.detail.debug"
|
||||
)}
|
||||
<ha-svg-icon slot="graphic" .path=${mdiBug}></ha-svg-icon>
|
||||
</ha-list-item>
|
||||
<ha-list-item
|
||||
class="danger"
|
||||
graphic="icon"
|
||||
@ -233,6 +236,11 @@ export class AssistPref extends LitElement {
|
||||
this._preferred = id;
|
||||
}
|
||||
|
||||
private async _debugPipeline(ev) {
|
||||
const id = ev.currentTarget.id as string;
|
||||
navigate(`/config/voice-assistants/debug/${id}`);
|
||||
}
|
||||
|
||||
private async _deletePipeline(ev) {
|
||||
const id = ev.currentTarget.id as string;
|
||||
if (this._preferred === id) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user