From dc51ab4dd10c4a7eae57ca60f9f18a0aaf4ced83 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sat, 31 Jan 2026 20:35:48 -0600 Subject: [PATCH] Enhancement: Added a "Reset to Defaults" button to the Network Access settings form, matching the functionality in Proxy Settings. Users can now quickly restore recommended network access settings with one click. --- CHANGELOG.md | 1 + .../forms/settings/NetworkAccessForm.jsx | 14 +++++++++++++- .../utils/forms/settings/NetworkAccessFormUtils.js | 9 +++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8af6c6a1..3966174a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Network Access "Reset to Defaults" button: Added a "Reset to Defaults" button to the Network Access settings form, matching the functionality in Proxy Settings. Users can now quickly restore recommended network access settings with one click. - Streams table column visibility toggle: Added column menu to Streams table header allowing users to show/hide optional columns (TVG-ID, Stats) based on preference, with optional columns hidden by default for cleaner default view. - Streams table TVG-ID column with search filter and sort: Added TVG-ID column to streams table with search filtering and sort capability for better stream organization. (Closes #866) - Thanks [@CodeBormen](https://github.com/CodeBormen) - Frontend now automatically refreshes streams and channels after a stream rehash completes, ensuring the UI is always up-to-date following backend merge operations. diff --git a/frontend/src/components/forms/settings/NetworkAccessForm.jsx b/frontend/src/components/forms/settings/NetworkAccessForm.jsx index dd01e75a..04ab60b0 100644 --- a/frontend/src/components/forms/settings/NetworkAccessForm.jsx +++ b/frontend/src/components/forms/settings/NetworkAccessForm.jsx @@ -11,6 +11,7 @@ import ConfirmationDialog from '../../ConfirmationDialog.jsx'; import { getNetworkAccessFormInitialValues, getNetworkAccessFormValidation, + getNetworkAccessDefaults, } from '../../../utils/forms/settings/NetworkAccessFormUtils.js'; const NetworkAccessForm = React.memo(({ active }) => { @@ -50,6 +51,10 @@ const NetworkAccessForm = React.memo(({ active }) => { ); }, [settings]); + const resetNetworkAccessToDefaults = () => { + networkAccessForm.setValues(getNetworkAccessDefaults()); + }; + const onNetworkAccessSubmit = async () => { setSaved(false); setNetworkAccessError(null); @@ -125,7 +130,14 @@ const NetworkAccessForm = React.memo(({ active }) => { /> ))} - + +