web/DialogButton: add "link" buttons

This commit is contained in:
dumbmoron
2024-10-12 17:36:28 +00:00
parent fe1d17ba8d
commit 0b06299da0
2 changed files with 31 additions and 15 deletions

View File

@@ -6,7 +6,8 @@ export type DialogButton = {
color?: "red",
main: boolean,
timeout?: number, // milliseconds
action: () => unknown | Promise<unknown>
action: () => unknown | Promise<unknown>,
link?: string
}
export type SmallDialogIcons = "warn-red";