From 4030c8db43d03138f37be4c37c8ef961d73192f8 Mon Sep 17 00:00:00 2001 From: Sergii Date: Wed, 11 Jul 2018 21:39:38 -0700 Subject: [PATCH] #3 APPROVE: view current items for approve - fixed stats view --- ui/web/src/main/resources/static/js/importRequest.js | 5 ++--- ui/web/src/main/resources/templates/main/importProgress.html | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/web/src/main/resources/static/js/importRequest.js b/ui/web/src/main/resources/static/js/importRequest.js index 61a89e3..03d5bd1 100644 --- a/ui/web/src/main/resources/static/js/importRequest.js +++ b/ui/web/src/main/resources/static/js/importRequest.js @@ -188,9 +188,8 @@ var ImportRequestsTree = { ImportRequestsTree.autoRefreshCheck.prop('checked', false); }, updateProgress: function (stats) { - ImportRequestsTree.progress.folders.setProgress(stats.folders, stats.foldersDone, - stats.foldersDone + " of " + stats.folders); - ImportRequestsTree.progress.files.setProgress(stats.files, 0,stats.files+" files"); + ImportRequestsTree.progress.folders.setProgress(stats.foldersDone, stats.folders, stats.foldersDone + " of " + stats.folders); + ImportRequestsTree.progress.files.setProgress(stats.files, stats.files >= 0 ? stats.files : 0,stats.files+" files"); }, refresh: function() { var id = ImportRequestsTree.getActiveProcessId(); diff --git a/ui/web/src/main/resources/templates/main/importProgress.html b/ui/web/src/main/resources/templates/main/importProgress.html index 5fa004f..c5254b8 100644 --- a/ui/web/src/main/resources/templates/main/importProgress.html +++ b/ui/web/src/main/resources/templates/main/importProgress.html @@ -75,8 +75,8 @@ Finished Folder Progress: - Folders:
- Files:
+ Folders:
+ Files: