diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-05-09 19:41:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-09 19:41:54 +0900 |
| commit | 96bc042d67a6175e0d899b7f7ce7d13de3a0dbf2 (patch) | |
| tree | b96466858e471fe789741694d2651bd1349183e6 /packages/frontend/src/os.ts | |
| parent | fix: exported antenna data cannot be imported in some cases (#15985) (diff) | |
| download | misskey-96bc042d67a6175e0d899b7f7ce7d13de3a0dbf2.tar.gz misskey-96bc042d67a6175e0d899b7f7ce7d13de3a0dbf2.tar.bz2 misskey-96bc042d67a6175e0d899b7f7ce7d13de3a0dbf2.zip | |
Feat: サーバー初期設定ウィザード (#15954)
* wip
* wip
* Update welcome.setup.vue
* wip
* wip
* wip
* wip
* Update MkServerSetupWizard.vue
* Update MkServerSetupWizard.vue
* wip
* wip
* wip
* Update types.ts
* wip
* wip
* Update CHANGELOG.md
Diffstat (limited to 'packages/frontend/src/os.ts')
| -rw-r--r-- | packages/frontend/src/os.ts | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/packages/frontend/src/os.ts b/packages/frontend/src/os.ts index 813b49635d..d891525782 100644 --- a/packages/frontend/src/os.ts +++ b/packages/frontend/src/os.ts @@ -547,18 +547,24 @@ export function success(): Promise<void> { }); } -export function waiting(text?: string | null): Promise<void> { - return new Promise(resolve => { - const showing = ref(true); - const { dispose } = popup(MkWaitingDialog, { - success: false, - showing: showing, - text, - }, { - done: () => resolve(), - closed: () => dispose(), - }); +export function waiting(text?: string | null): () => void { + window.document.body.setAttribute('inert', 'true'); + + const showing = ref(true); + const { dispose } = popup(MkWaitingDialog, { + success: false, + showing: showing, + text, + }, { + closed: () => { + window.document.body.removeAttribute('inert'); + dispose(); + }, }); + + return () => { + showing.value = false; + }; } export function form<F extends Form>(title: string, f: F): Promise<{ canceled: true, result?: undefined } | { canceled?: false, result: GetFormResultType<F> }> { |