mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 04:16:24 -05:00
Counting files before refresh to display more helpful progress.
This commit is contained in:
parent
d7e284f8de
commit
1016e32846
3 changed files with 43 additions and 4 deletions
|
|
@ -487,11 +487,12 @@ export function FilesRefreshProgress() {
|
|||
return;
|
||||
}
|
||||
|
||||
const {refreshing, modeling, indexing, cleanup, indexed, unindexed, total_files, modeled} = progress;
|
||||
const {refreshing, modeling, indexing, cleanup, indexed, unindexed, total_files, total_file_groups, modeled}
|
||||
= progress;
|
||||
|
||||
if (refreshing) {
|
||||
// Default is Discovery / Step 1.
|
||||
let params = {value: 0, total: 3, progress: 'ratio'};
|
||||
let params = {value: total_file_groups, total: total_files, progress: 'ratio'};
|
||||
let label = 'Refresh: Discovery';
|
||||
|
||||
if (modeling) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue