Keyboard shortcut overlay
This commit is contained in:
+2
-2
@@ -114,8 +114,8 @@ function modal(content: string | Node[], buttons: { label: string; value: string
|
||||
});
|
||||
}
|
||||
|
||||
export async function showAlert(text: string): Promise<void> {
|
||||
await modal(text, [{ label: "OK", value: "ok", class: "primary" }]);
|
||||
export async function showAlert(content: string | Node[]): Promise<void> {
|
||||
await modal(content, [{ label: "OK", value: "ok", class: "primary" }]);
|
||||
}
|
||||
|
||||
export async function showConfirm(content: string | Node[], action: string, danger = false, anchor: Element | null = null): Promise<boolean> {
|
||||
|
||||
Reference in New Issue
Block a user