diff --git a/web/src/components/dialog/DialogButton.svelte b/web/src/components/dialog/DialogButton.svelte new file mode 100644 index 00000000..f977cc6a --- /dev/null +++ b/web/src/components/dialog/DialogButton.svelte @@ -0,0 +1,55 @@ + + + + + diff --git a/web/src/components/dialog/DialogButtons.svelte b/web/src/components/dialog/DialogButtons.svelte index 082d20e0..f239865f 100644 --- a/web/src/components/dialog/DialogButtons.svelte +++ b/web/src/components/dialog/DialogButtons.svelte @@ -1,23 +1,14 @@
@@ -31,14 +22,4 @@ border-radius: var(--border-radius); min-height: 40px; } - - .popup-button { - width: 100%; - height: 40px; - } - - .popup-button.red { - background-color: var(--red); - color: var(--white); - } diff --git a/web/src/lib/types/dialog.ts b/web/src/lib/types/dialog.ts index f7951309..0a5004db 100644 --- a/web/src/lib/types/dialog.ts +++ b/web/src/lib/types/dialog.ts @@ -4,6 +4,7 @@ export type DialogButton = { text: string, color?: "red", main: boolean, + timeout?: number, // milliseconds action: () => unknown | Promise