From 5c3b8be055f5e327b37beec3f057025428bd97cd Mon Sep 17 00:00:00 2001 From: Alex <49969959+alexzhang1030@users.noreply.github.com> Date: Fri, 28 Apr 2023 15:38:44 +0800 Subject: [PATCH] feat: add wellbeing preference hide news (#2026) --- components/common/CommonRouteTabs.vue | 3 ++- composables/settings/definition.ts | 2 ++ locales/en.json | 1 + locales/zh-CN.json | 1 + pages/[[server]]/explore.vue | 3 +++ pages/settings/preferences/index.vue | 6 ++++++ 6 files changed, 15 insertions(+), 1 deletion(-) diff --git a/components/common/CommonRouteTabs.vue b/components/common/CommonRouteTabs.vue index a2b453a7..e0eefc4f 100644 --- a/components/common/CommonRouteTabs.vue +++ b/components/common/CommonRouteTabs.vue @@ -7,6 +7,7 @@ export interface CommonRouteTabOption { disabled?: boolean name?: string icon?: string + hide?: boolean } const { options, command, replace, preventScrollTop = false } = $defineProps<{ options: CommonRouteTabOption[] @@ -31,7 +32,7 @@ useCommands(() => command