summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/os.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/os.ts b/src/client/os.ts
index 284f982f06..1e1d950a12 100644
--- a/src/client/os.ts
+++ b/src/client/os.ts
@@ -214,7 +214,11 @@ export function modalPageWindow(path: string) {
}, {}, 'closed');
}
-export function dialog(props: Record<string, any>) {
+export function dialog(props: {
+ type: 'error' | 'info' | 'success' | 'warning' | 'waiting' | 'help';
+ title?: string | null;
+ text?: string | null;
+}) {
return new Promise((resolve, reject) => {
popup(import('@client/components/dialog.vue'), props, {
done: result => {