From 34318893982e86e2e59fff5129ad5cba1b576a8a Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Sat, 27 Sep 2025 11:48:57 +0100 Subject: [PATCH] Add 'Hide Trending' toggle Allows hiding of the trending tab entirely. --- src/components/NavBar.vue | 5 ++++- src/components/PreferencesPage.vue | 14 ++++++++++++++ src/locales/en.json | 3 ++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 1ee9c31f8d..2537d48d9d 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -146,7 +146,10 @@ export default { return _this.getPreferenceBoolean("watchHistory", false); }, shouldShowTrending(_this) { - return _this.getPreferenceString("homepage", "trending") != "trending"; + return ( + _this.getPreferenceString("homepage", "trending") != "trending" && + _this.getPreferenceBoolean("showTrending", true) + ); }, showSearchHistory(_this) { return _this.getPreferenceBoolean("searchHistory", false) && localStorage.getItem("search_history"); diff --git a/src/components/PreferencesPage.vue b/src/components/PreferencesPage.vue index eae7f63c56..c586b8c04b 100644 --- a/src/components/PreferencesPage.vue +++ b/src/components/PreferencesPage.vue @@ -34,6 +34,17 @@ + +