Cancel button should be enabled in the capsule sync until the job completions
Description of problem: Cancel button should be enabled in the capsule sync until the job completions.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install satellite and Capsule with latest 6.8 Snap.
2. Create custom repo and Add RHEL repo.
3. Create Lifecycle env, Content view and activation key.
4. Go to Infrastructres -->Capsules and click on the one of capsule.
5. Trigger the optimized sync operation.
6. Sync operation is in-progress and "Cancel Sync" option is enabled.
7. After reload the page or change the page, the "Cancel sync" button disappear and "Syncronize" option enable with "Optimized Sync" and "Complete Sync"
Cancel Button disapperar after refreshing the Capsule sync page.
Cancel button for in-progress job should not be disappear until the job completion.
I have attached the recording of this issue