web/dialogs: move buttons to own component & add optional timeout
This commit is contained in:
@@ -4,6 +4,7 @@ export type DialogButton = {
|
||||
text: string,
|
||||
color?: "red",
|
||||
main: boolean,
|
||||
timeout?: number, // milliseconds
|
||||
action: () => unknown | Promise<unknown>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user