From a88589b7b7fa4933e5cd33642b2f78f88c900341 Mon Sep 17 00:00:00 2001 From: Tim Down <158919+timdown@users.noreply.github.com> Date: Thu, 20 Jul 2023 11:52:29 +0100 Subject: [PATCH] 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 --- .../source-editor/extensions/changes/change-manager.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/web/frontend/js/features/source-editor/extensions/changes/change-manager.ts b/services/web/frontend/js/features/source-editor/extensions/changes/change-manager.ts index 9e991a7dba..173b14cdd7 100644 --- a/services/web/frontend/js/features/source-editor/extensions/changes/change-manager.ts +++ b/services/web/frontend/js/features/source-editor/extensions/changes/change-manager.ts @@ -316,12 +316,18 @@ export const createChangeManager = ( acceptChanges(payload) view.dispatch(buildChangeMarkers()) broadcastChange() + // Dispatch a focus:changed event to force the Angular controller to + // reassemble the list of entries without bulk actions + dispatchFocusChangedEvent(view.state) break } case 'changes:reject': { view.dispatch(rejectChanges(payload)) broadcastChange() + // Dispatch a focus:changed event to force the Angular controller to + // reassemble the list of entries without bulk actions + dispatchFocusChangedEvent(view.state) break }