diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-22 13:16:23 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-22 13:16:23 +0900 |
| commit | 98f1d936280737516d3da6770893b1aa9a28df0f (patch) | |
| tree | 5d1b43c6b0ec5dd9a928810494ef261c3c36365d /src/client | |
| parent | enhance(client): ユーザー名についてのヒントを追加 (diff) | |
| download | sharkey-98f1d936280737516d3da6770893b1aa9a28df0f.tar.gz sharkey-98f1d936280737516d3da6770893b1aa9a28df0f.tar.bz2 sharkey-98f1d936280737516d3da6770893b1aa9a28df0f.zip | |
refactor
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/os.ts | 6 |
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 => { |