mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix circular progress size + fix bug in assist pipeline debug (#19268)
This commit is contained in:
parent
0b20725f5f
commit
efddbfcfa0
@ -47,7 +47,7 @@ export class HaAuthTextField extends HaTextField {
|
|||||||
// TODO: live() directive needs casting for lit-analyzer
|
// TODO: live() directive needs casting for lit-analyzer
|
||||||
// https://github.com/runem/lit-analyzer/pull/91/files
|
// https://github.com/runem/lit-analyzer/pull/91/files
|
||||||
// TODO: lit-analyzer labels min/max as (number|string) instead of string
|
// TODO: lit-analyzer labels min/max as (number|string) instead of string
|
||||||
return html` <input
|
return html`<input
|
||||||
aria-labelledby=${ifDefined(ariaLabelledbyOrUndef)}
|
aria-labelledby=${ifDefined(ariaLabelledbyOrUndef)}
|
||||||
aria-controls=${ifDefined(ariaControlsOrUndef)}
|
aria-controls=${ifDefined(ariaControlsOrUndef)}
|
||||||
aria-describedby=${ifDefined(ariaDescribedbyOrUndef)}
|
aria-describedby=${ifDefined(ariaDescribedbyOrUndef)}
|
||||||
|
@ -53,7 +53,7 @@ class MediaUploadButton extends LitElement {
|
|||||||
${this._uploading > 0
|
${this._uploading > 0
|
||||||
? html`
|
? html`
|
||||||
<ha-circular-progress
|
<ha-circular-progress
|
||||||
size="tiny"
|
size="small"
|
||||||
indeterminate
|
indeterminate
|
||||||
area-label="Uploading"
|
area-label="Uploading"
|
||||||
slot="icon"
|
slot="icon"
|
||||||
|
@ -326,7 +326,7 @@ class DialogSystemInformation extends LitElement {
|
|||||||
value = html`
|
value = html`
|
||||||
<ha-circular-progress
|
<ha-circular-progress
|
||||||
indeterminate
|
indeterminate
|
||||||
size="tiny"
|
size="small"
|
||||||
></ha-circular-progress>
|
></ha-circular-progress>
|
||||||
`;
|
`;
|
||||||
} else if (info.type === "failed") {
|
} else if (info.type === "failed") {
|
||||||
|
@ -247,7 +247,7 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Play audio when we're done.
|
// Play audio when we're done.
|
||||||
if (updatedRun.stage === "done") {
|
if (updatedRun.stage === "done" && !updatedRun.error) {
|
||||||
const url = updatedRun.tts!.tts_output!.url;
|
const url = updatedRun.tts!.tts_output!.url;
|
||||||
const audio = new Audio(url);
|
const audio = new Audio(url);
|
||||||
audio.addEventListener("ended", () => {
|
audio.addEventListener("ended", () => {
|
||||||
@ -261,7 +261,10 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
audio.play();
|
audio.play();
|
||||||
} else if (updatedRun.stage === "error") {
|
} else if (
|
||||||
|
(updatedRun.stage === "done" && updatedRun.error) ||
|
||||||
|
updatedRun.stage === "error"
|
||||||
|
) {
|
||||||
this._finished = true;
|
this._finished = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -90,7 +90,7 @@ const renderProgress = (
|
|||||||
return html`❌`;
|
return html`❌`;
|
||||||
}
|
}
|
||||||
return html`
|
return html`
|
||||||
<ha-circular-progress size="tiny" indeterminate></ha-circular-progress>
|
<ha-circular-progress size="small" indeterminate></ha-circular-progress>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user