Fixes #38188 - Added error display for "Synchronize Now" button #11302
+21
−3
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.
What are the changes introduced in this pull request?
Added error handling for the "Synchronize Now" button on the Sync Status page, ensuring that users see an error message when attempting to sync repositories while the associated Content View is still publishing. The error message is displayed using the existing notification system without requiring additional API calls.
Considerations taken when implementing this change?
Leveraged existing error-handling mechanisms to minimize code changes while ensuring a smooth user experience. Instead of modifying backend logic extensively, the solution captures and displays API errors directly in the UI, preventing unnecessary sync attempts and providing immediate feedback to users.
What are the testing steps for this pull request?