mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 18:44:02 +02:00
enhance(frontend): サーバーの初期設定ウィザードをやり直せるように
This commit is contained in:
@@ -287,6 +287,10 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
</MkTextarea>
|
||||
</div>
|
||||
</MkFolder>
|
||||
|
||||
<MkButton primary @click="openSetupWizard">
|
||||
Open setup wizard
|
||||
</MkButton>
|
||||
</div>
|
||||
</div>
|
||||
</PageWithHeader>
|
||||
@@ -425,6 +429,20 @@ const proxyAccountForm = useForm({
|
||||
fetchInstance(true);
|
||||
});
|
||||
|
||||
async function openSetupWizard() {
|
||||
const { canceled } = await os.confirm({
|
||||
type: 'warning',
|
||||
title: i18n.ts._serverSettings.restartServerSetupWizardConfirm_title,
|
||||
text: i18n.ts._serverSettings.restartServerSetupWizardConfirm_text,
|
||||
});
|
||||
if (canceled) return;
|
||||
|
||||
const { dispose } = await os.popupAsyncWithDialog(import('@/components/MkServerSetupWizardDialog.vue').then(x => x.default), {
|
||||
}, {
|
||||
closed: () => dispose(),
|
||||
});
|
||||
}
|
||||
|
||||
const headerTabs = computed(() => []);
|
||||
|
||||
definePage(() => ({
|
||||
|
||||
Reference in New Issue
Block a user