Skip to content

Commit 0d493b5

Browse files
author
Ebuson
committed
fix peopleInImage progress bar
1 parent 64c9b8d commit 0d493b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kahuna/public/js/search/results.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ results.controller('SearchResultsCtrl', [
512512

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

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

0 commit comments

Comments
 (0)