batches: hide "Create" button on search results unless enabled
Created by: courier-new
Closes https://github.com/sourcegraph/sourcegraph/issues/40612.
Just adds an additional site settings check to only show the "Create Batch Change" button on the search results page if the instance has batch changes enabled in its configuration. Since we changed the default for the experimental flag batchChangesExecutionEnabled
to true
for beta, the condition to show this button was evaluating to true even if the entire instance didn't have batch changes enabled.
Test plan
Manually verified:
batchChanges.enabled |
experimentalFeatures.batchChangesExecution |
Button present? |
---|---|---|
true |
true |
|
false |
true |
|
true |
false |
|
true |
unset (= true ) |
App preview:
Check out the client app preview documentation to learn more.