mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 13:56:35 +00:00
Fix spinner in quick bar (#25097)
This commit is contained in:
parent
9a4469588c
commit
7b78d821f9
@ -42,8 +42,8 @@ import { haStyleDialog, haStyleScrollbar } from "../../resources/styles";
|
|||||||
import { loadVirtualizer } from "../../resources/virtualizer";
|
import { loadVirtualizer } from "../../resources/virtualizer";
|
||||||
import type { HomeAssistant } from "../../types";
|
import type { HomeAssistant } from "../../types";
|
||||||
import { showConfirmationDialog } from "../generic/show-dialog-box";
|
import { showConfirmationDialog } from "../generic/show-dialog-box";
|
||||||
import { QuickBarMode, type QuickBarParams } from "./show-dialog-quick-bar";
|
|
||||||
import { showShortcutsDialog } from "../shortcuts/show-shortcuts-dialog";
|
import { showShortcutsDialog } from "../shortcuts/show-shortcuts-dialog";
|
||||||
|
import { QuickBarMode, type QuickBarParams } from "./show-dialog-quick-bar";
|
||||||
|
|
||||||
interface QuickBarItem extends ScorableTextItem {
|
interface QuickBarItem extends ScorableTextItem {
|
||||||
primaryText: string;
|
primaryText: string;
|
||||||
@ -425,10 +425,12 @@ export class QuickBar extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _addSpinnerToCommandItem(index: number): void {
|
private _addSpinnerToCommandItem(index: number): void {
|
||||||
|
const div = document.createElement("div");
|
||||||
|
div.slot = "meta";
|
||||||
const spinner = document.createElement("ha-spinner");
|
const spinner = document.createElement("ha-spinner");
|
||||||
spinner.size = "small";
|
spinner.size = "small";
|
||||||
spinner.slot = "meta";
|
div.appendChild(spinner);
|
||||||
this._getItemAtIndex(index)?.appendChild(spinner);
|
this._getItemAtIndex(index)?.appendChild(div);
|
||||||
}
|
}
|
||||||
|
|
||||||
private _handleSearchChange(ev: CustomEvent): void {
|
private _handleSearchChange(ev: CustomEvent): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user