From cf468166870b38b05f11464e771a952f8805a3b8 Mon Sep 17 00:00:00 2001 From: NoriDev <11006910+noridev@users.noreply.github.com> Date: Fri, 26 May 2023 14:40:44 +0900 Subject: feat: アカウント初期設定ウィザードに戻るボタンと、後で進むボタンを追加 (#10893) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * enhance(frontend): アカウント初期設定ウィザードに戻るボタンを追加 * enhance(frontend): アカウント初期設定ウィザードにあとでボタンを追加 * tweak --------- Co-authored-by: syuilo --- .../frontend/src/components/MkUserSetupDialog.vue | 35 ++++++++++++++++++---- 1 file changed, 30 insertions(+), 5 deletions(-) (limited to 'packages/frontend/src/components/MkUserSetupDialog.vue') diff --git a/packages/frontend/src/components/MkUserSetupDialog.vue b/packages/frontend/src/components/MkUserSetupDialog.vue index 252c2eecce..566441213e 100644 --- a/packages/frontend/src/components/MkUserSetupDialog.vue +++ b/packages/frontend/src/components/MkUserSetupDialog.vue @@ -34,6 +34,7 @@
{{ i18n.ts._initialAccountSetting.accountCreated }}
{{ i18n.ts._initialAccountSetting.letsStartAccountSetup }}
{{ i18n.ts._initialAccountSetting.profileSetting }} + {{ i18n.ts.later }} @@ -43,6 +44,7 @@
+ {{ i18n.ts.goBack }} {{ i18n.ts.continue }}
@@ -53,6 +55,7 @@
+ {{ i18n.ts.goBack }} {{ i18n.ts.continue }}
@@ -64,7 +67,10 @@
- {{ i18n.ts.continue }} +
+ {{ i18n.ts.goBack }} + {{ i18n.ts.continue }} +
@@ -76,7 +82,10 @@
{{ i18n.ts.pushNotification }}
{{ i18n.t('_initialAccountSetting.pushNotificationDescription', { name: instance.name ?? host }) }}
- {{ i18n.ts.continue }} +
+ {{ i18n.ts.goBack }} + {{ i18n.ts.continue }} +
@@ -95,7 +104,10 @@
{{ i18n.t('_initialAccountSetting.haveFun', { name: instance.name ?? host }) }}
- {{ i18n.ts.close }} +
+ {{ i18n.ts.goBack }} + {{ i18n.ts.close }} +
@@ -144,6 +156,19 @@ async function close(skip: boolean) { dialog.value.close(); defaultStore.set('accountSetupWizard', -1); } + +async function later(later: boolean) { + if (later) { + const { canceled } = await os.confirm({ + type: 'warning', + text: i18n.ts._initialAccountSetting.laterAreYouSure, + }); + if (canceled) return; + } + + dialog.value.close(); + defaultStore.set('accountSetupWizard', 0); +} -- cgit v1.2.3-freya