mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 04:26:23 +02:00
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
This commit is contained in:
@@ -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> }> {
|
||||
|
||||
Reference in New Issue
Block a user