rollback: Fire postEdit JavaScript hook on success
commit248f6294f9311c043941e8d16e8523b19de92f66
authorKosta Harlan <kharlan@wikimedia.org>
Wed, 30 Aug 2023 08:54:18 +0000 (30 10:54 +0200)
committerKosta Harlan <kharlan@wikimedia.org>
Fri, 1 Sep 2023 09:44:46 +0000 (1 11:44 +0200)
tree8ba1db97753d2e95bf2ba0aa800b57e085b8e8b6
parent41d3b9b0d5406e180b1747fcde2e6f624b90ec39
rollback: Fire postEdit JavaScript hook on success

Why:

- Front-end code should be able to respond to actions that result in
  edits

What:

- Fire core's postEdit hook after a successful rollback action
- Add the relevant code to the existing mediawiki.misc-authed-curate
  ResourceLoader module to avoid adding another RL Module
- Output the mediawiki.misc-authed-curate module for successful
  scenarios in RollbackAction.php
- Fire the postEdit hook without any messages. It's possible that a
  toast message makes sense, but that can be added later, if someone has
  a need for it; perhaps in the context of T88044

Bug: T345229
Change-Id: Icb33535d8d5ba3a386459befacab11971ae44f49
RELEASE-NOTES-1.41
includes/actions/RollbackAction.php
resources/src/mediawiki.misc-authed-curate/rollback.js