mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 22:07:20 +00:00
Don't add quickbar to history (#11429)
This commit is contained in:
parent
ffaff30b46
commit
5be22d46ab
@ -26,6 +26,7 @@ interface ShowDialogParams<T> {
|
|||||||
dialogTag: keyof HTMLElementTagNameMap;
|
dialogTag: keyof HTMLElementTagNameMap;
|
||||||
dialogImport: () => Promise<unknown>;
|
dialogImport: () => Promise<unknown>;
|
||||||
dialogParams: T;
|
dialogParams: T;
|
||||||
|
addHistory?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DialogClosedParams {
|
export interface DialogClosedParams {
|
||||||
@ -124,8 +125,15 @@ export const makeDialogManager = (
|
|||||||
element.addEventListener(
|
element.addEventListener(
|
||||||
"show-dialog",
|
"show-dialog",
|
||||||
(e: HASSDomEvent<ShowDialogParams<unknown>>) => {
|
(e: HASSDomEvent<ShowDialogParams<unknown>>) => {
|
||||||
const { dialogTag, dialogImport, dialogParams } = e.detail;
|
const { dialogTag, dialogImport, dialogParams, addHistory } = e.detail;
|
||||||
showDialog(element, root, dialogTag, dialogParams, dialogImport);
|
showDialog(
|
||||||
|
element,
|
||||||
|
root,
|
||||||
|
dialogTag,
|
||||||
|
dialogParams,
|
||||||
|
dialogImport,
|
||||||
|
addHistory
|
||||||
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -16,5 +16,6 @@ export const showQuickBar = (
|
|||||||
dialogTag: "ha-quick-bar",
|
dialogTag: "ha-quick-bar",
|
||||||
dialogImport: loadQuickBar,
|
dialogImport: loadQuickBar,
|
||||||
dialogParams,
|
dialogParams,
|
||||||
|
addHistory: false,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user