batches: disable "Apply" while changesets are selected
Created by: courier-new
Part 3 of #23383 (closed).
Note: This PR is based on #24020 since it builds upon the changes there.
This PR includes:
- disabling the "Apply" button until a publish status modification is selected
This PR does not include:
- recalculating the actions on the backend when a publish status modification is selected
(This will be the final follow-up PR)
In order to get the disabled button tooltip specified in designs, a similar workaround to the disabled input tooltip PR was required for buttons. I could not find any other instances of buttons with disabled tooltips across the repo, but ostensibly the ButtonTooltip
could become our go-to in the same way that InputTooltip
can.
The button is disabled if any changesets are selected. Choosing a publication state from the actions menu records the modification and deselects the changesets.
https://user-images.githubusercontent.com/8942601/129667725-299074bf-b93e-402a-b918-9be6843d75c7.mov