Clear selection after bulk actions.

This commit is contained in:
Paulo Reis 2017-06-06 10:03:33 +01:00
parent af93fc1869
commit 81a5a5311d

View file

@ -374,8 +374,9 @@ define [
bulkAccept = () -> bulkAccept = () ->
_doAcceptChanges $scope.reviewPanel.selectedEntryIds.slice() _doAcceptChanges $scope.reviewPanel.selectedEntryIds.slice()
$scope.reviewPanel.selectedEntryIds = [] $timeout () ->
$scope.reviewPanel.nVisibleSelectedChanges = 0 $scope.reviewPanel.selectedEntryIds = []
$scope.reviewPanel.nVisibleSelectedChanges = 0
event_tracking.sendMB "rp-bulk-accept", { event_tracking.sendMB "rp-bulk-accept", {
view: if $scope.ui.reviewPanelOpen then $scope.reviewPanel.subView else 'mini', view: if $scope.ui.reviewPanelOpen then $scope.reviewPanel.subView else 'mini',
nEntries: $scope.reviewPanel.nVisibleSelectedChanges nEntries: $scope.reviewPanel.nVisibleSelectedChanges
@ -383,8 +384,9 @@ define [
bulkReject = () -> bulkReject = () ->
_doRejectChanges $scope.reviewPanel.selectedEntryIds.slice() _doRejectChanges $scope.reviewPanel.selectedEntryIds.slice()
$scope.reviewPanel.selectedEntryIds = [] $timeout () ->
$scope.reviewPanel.nVisibleSelectedChanges = 0 $scope.reviewPanel.selectedEntryIds = []
$scope.reviewPanel.nVisibleSelectedChanges = 0
event_tracking.sendMB "rp-bulk-reject", { event_tracking.sendMB "rp-bulk-reject", {
view: if $scope.ui.reviewPanelOpen then $scope.reviewPanel.subView else 'mini', view: if $scope.ui.reviewPanelOpen then $scope.reviewPanel.subView else 'mini',
nEntries: $scope.reviewPanel.nVisibleSelectedChanges nEntries: $scope.reviewPanel.nVisibleSelectedChanges