Skip to content

Commit

Permalink
fix peopleInImage progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebuson committed Dec 29, 2021
1 parent 64c9b8d commit 0d493b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kahuna/public/js/search/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ results.controller('SearchResultsCtrl', [

$scope.$on("events:batch-operations:start", (e, entry) => {
ctrl.batchOperations = [entry, ...ctrl.batchOperations];
if(entry.key === "peopleInImage" && ctrl.batchOperations.length > 1){
ctrl.batchOperations = [Object.assign({}, entry, { total: ctrl.batchOperations.length })]
}

window.onbeforeunload = function() {
return 'Batch update in progress, are you sure you want to leave?';
Expand Down

0 comments on commit 0d493b5

Please sign in to comment.