From d279d618a5534ad6b789640d151391469c8a3375 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 5 Jan 2023 09:59:49 +0100 Subject: [PATCH] ui: move account settings link under profile --- components/settings/SettingsItem.vue | 6 +++++- locales/en-US.json | 5 ++++- locales/zh-CN.json | 4 +++- pages/settings.vue | 8 -------- pages/settings/profile/index.vue | 13 +++++++++++-- 5 files changed, 23 insertions(+), 13 deletions(-) diff --git a/components/settings/SettingsItem.vue b/components/settings/SettingsItem.vue index 4de5d113..cda8029b 100644 --- a/components/settings/SettingsItem.vue +++ b/components/settings/SettingsItem.vue @@ -8,6 +8,7 @@ const props = defineProps<{ command?: boolean disabled?: boolean external?: true + large?: true }>() const router = useRouter() @@ -55,7 +56,10 @@ useCommand({ :class="$slots.description ? 'w-12 h-12' : ''" > -
+
diff --git a/locales/en-US.json b/locales/en-US.json index fcd79765..e1a57bf9 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -196,7 +196,10 @@ "about": { "label": "About" }, - "account_settings": "Account settings", + "account_settings": { + "description": "Edit your account settings in Mastodon UI", + "label": "Account settings" + }, "feature_flags": { "github_cards": "GitHub Cards", "title": "Experimental Features", diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 28912e1c..befaa338 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -187,7 +187,9 @@ "about": { "label": "关于" }, - "account_settings": "账号设置", + "account_settings": { + "label": "账号设置" + }, "feature_flags": { "github_cards": "GitHub 卡片", "title": "实验功能", diff --git a/pages/settings.vue b/pages/settings.vue index c846992f..3bbd4620 100644 --- a/pages/settings.vue +++ b/pages/settings.vue @@ -46,14 +46,6 @@ const isRootPath = computedEager(() => route.name === 'settings') :text="$t('settings.notifications_settings')" to="/settings/notifications" /> - +