summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-08-22 13:16:23 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-08-22 13:16:23 +0900
commit98f1d936280737516d3da6770893b1aa9a28df0f (patch)
tree5d1b43c6b0ec5dd9a928810494ef261c3c36365d /src/client
parentenhance(client): ユーザー名についてのヒントを追加 (diff)
downloadsharkey-98f1d936280737516d3da6770893b1aa9a28df0f.tar.gz
sharkey-98f1d936280737516d3da6770893b1aa9a28df0f.tar.bz2
sharkey-98f1d936280737516d3da6770893b1aa9a28df0f.zip
refactor
Diffstat (limited to 'src/client')
-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 => {