Using the rebase button fails to update the current page, needs reloading
Summary
Using the "rebase" button on a MR, the loading button appears, but then the page comes back the same "rebase" button, you need to reload the page to see the "Merge when pipeline succeeds" button.
Steps to reproduce
Rebase a MR that needs rebasing, observe the button not changing to the intended state after the loading state.
What is the expected correct behavior?
The AJAX request should put the MR page in the state we get after a full page reload.
Details about the Heptapod instance where the bug occurs
Heptapod 0.31.1 (GitLab CE 14.9.5)
Mercurial 6.1.3 / Python 3.9.13 / hg-evolve 10.5.1