Merge pull request #13951 from overleaf/td-review-panel-dismiss-bulk-actions

Review panel: make "Reject all" and "Accept all" buttons disappear after use

GitOrigin-RevId: 99534b65ec812fb0e6efd443ca126e71a0a09ae5
This commit is contained in:
Tim Down 2023-07-20 11:52:29 +01:00 committed by Copybot
parent 0d3af56efa
commit a88589b7b7

View file

@ -316,12 +316,18 @@ export const createChangeManager = (
acceptChanges(payload) acceptChanges(payload)
view.dispatch(buildChangeMarkers()) view.dispatch(buildChangeMarkers())
broadcastChange() broadcastChange()
// Dispatch a focus:changed event to force the Angular controller to
// reassemble the list of entries without bulk actions
dispatchFocusChangedEvent(view.state)
break break
} }
case 'changes:reject': { case 'changes:reject': {
view.dispatch(rejectChanges(payload)) view.dispatch(rejectChanges(payload))
broadcastChange() broadcastChange()
// Dispatch a focus:changed event to force the Angular controller to
// reassemble the list of entries without bulk actions
dispatchFocusChangedEvent(view.state)
break break
} }