mirror of
https://github.com/syncthing/syncthing.git
synced 2026-05-09 15:43:51 -04:00
### Purpose Fixes issue #10634. ### Testing Manually tested by reproducing the issue: - Created a new folder with "Add ignore patterns" enabled - Verified that after saving, only the "Ignore Patterns" tab remains accessible - Confirmed that other tabs are visually disabled and no longer clickable ### Screenshots No visible UI changes. ### Explanation of the Fix **Cause** The issue was caused by only visually disabling tabs in the UI by setting their `href` attribute to an empty string (`href=""`). This made the tabs appear disabled, but they were still clickable, leading to confusing behavior where users could interact with the tabs without any actual navigation. **Fix** - Introduced `isFolderTabDisabled` to centralize the logic for determining whether a tab should be disabled - Added `onFolderTabClick` to prevent interaction with disabled tabs - Updated the HTML to remove tab behavior (such as `data-toggle="tab"` and `href`) when a tab is disabled ### Documentation No documentation changes required. Signed-off-by: JRNitre <nichinichisou67@outlook.com> Co-authored-by: Jakob Borg <jakob@kastelo.net>