Просмотр исходного кода

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
Tim Down 3 лет назад
Родитель
Сommit
a88589b7b7

+ 6 - 0
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
       }