mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-05 12:02:55 +01:00
feat(tv): add KefinTweaks watchlist toggle to TV settings
The useKefinTweaks setting is stored per-device and only had a toggle in the mobile settings, so the watchlist feature could never be enabled from a TV-only install. Add a Plugins section to the TV settings with the same toggle, disabled when the server plugin locks the setting.
This commit is contained in:
@@ -50,7 +50,7 @@ import { clearTopShelfCacheSafely } from "@/utils/topshelf/cache";
|
||||
export default function SettingsTV() {
|
||||
const { t } = useTranslation();
|
||||
const insets = useSafeAreaInsets();
|
||||
const { settings, updateSettings } = useSettings();
|
||||
const { settings, updateSettings, pluginSettings } = useSettings();
|
||||
const { logout, loginWithSavedCredential, loginWithPassword } = useJellyfin();
|
||||
const [user] = useAtom(userAtom);
|
||||
const [api] = useAtom(apiAtom);
|
||||
@@ -877,6 +877,15 @@ export default function SettingsTV() {
|
||||
onToggle={(value) => updateSettings({ tvThemeMusicEnabled: value })}
|
||||
/>
|
||||
|
||||
{/* Plugins Section */}
|
||||
<TVSectionHeader title={t("home.settings.plugins.plugins_title")} />
|
||||
<TVSettingsToggle
|
||||
label={t("home.settings.plugins.kefinTweaks.watchlist_enabler")}
|
||||
value={settings.useKefinTweaks}
|
||||
onToggle={(value) => updateSettings({ useKefinTweaks: value })}
|
||||
disabled={pluginSettings?.useKefinTweaks?.locked === true}
|
||||
/>
|
||||
|
||||
{/* Storage Section */}
|
||||
<TVSectionHeader title={t("home.settings.storage.storage_title")} />
|
||||
<TVSettingsOptionButton
|
||||
|
||||
Reference in New Issue
Block a user