mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-03 14:47:22 +00:00
19 lines
550 B
TypeScript
19 lines
550 B
TypeScript
import { fireEvent } from "../../../../src/common/dom/fire_event";
|
|
import { Supervisor } from "../../../../src/data/supervisor/supervisor";
|
|
|
|
export interface HassioCreateBackupDialogParams {
|
|
supervisor: Supervisor;
|
|
onCreate: () => void;
|
|
}
|
|
|
|
export const showHassioCreateBackupDialog = (
|
|
element: HTMLElement,
|
|
dialogParams: HassioCreateBackupDialogParams
|
|
): void => {
|
|
fireEvent(element, "show-dialog", {
|
|
dialogTag: "dialog-hassio-create-backup",
|
|
dialogImport: () => import("./dialog-hassio-create-backup"),
|
|
dialogParams,
|
|
});
|
|
};
|