mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-15 07:25:54 +00:00
19 lines
538 B
TypeScript
19 lines
538 B
TypeScript
import { fireEvent } from "../../../../src/common/dom/fire_event";
|
|
import type { Supervisor } from "../../../../src/data/supervisor/supervisor";
|
|
import "./dialog-hassio-registries";
|
|
|
|
export interface RegistriesDialogParams {
|
|
supervisor: Supervisor;
|
|
}
|
|
|
|
export const showRegistriesDialog = (
|
|
element: HTMLElement,
|
|
dialogParams: RegistriesDialogParams
|
|
): void => {
|
|
fireEvent(element, "show-dialog", {
|
|
dialogTag: "dialog-hassio-registries",
|
|
dialogImport: () => import("./dialog-hassio-registries"),
|
|
dialogParams,
|
|
});
|
|
};
|