fix(ui): reload shelves when enabling Kobo sync #2715
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
Fixes #2528
When enabling Kobo sync, the backend creates a "Kobo" shelf but the UI didn't refresh the shelf list — the user had to manually reload the page to see it. Disabling sync correctly removed the shelf without a refresh because
reloadShelves()was only called in the disable path.🏷️ Type of Change
🔧 Changes
!syncEnabledguard aroundshelfService.reloadShelves()inupdateKoboSettings()so shelves reload on both enable and disable🧪 Testing
📸 Screenshots / Video (MANDATORY)
✅ Pre-Submission Checklist
develop(merge conflicts resolved)./gradlew testfor backend,ng testfor frontend)💬 Additional Context (optional)
The
reloadShelves()call is a lightweight GET request, so calling it on other Kobo settings changes (thresholds, auto-add toggle) is harmless — the shelf list simply won't change.