mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
Admin/users (#8762)
* feat: wip admin/users * feat: more work * feat: more fixes * feat: #8662, verified/unverified user groups * feat: add filter * feat: change user search to use filters array * refactor: remove unused search call * fix: tests * fix: cant join system groups * fix: upgrade script
This commit is contained in:
committed by
GitHub
parent
bfaeb27c11
commit
872bacf1c4
@@ -129,6 +129,7 @@ Upgrade.process = async function (files, skipCount) {
|
||||
const version = path.dirname(file).split('/').pop();
|
||||
const progress = {
|
||||
current: 0,
|
||||
counter: 0,
|
||||
total: 0,
|
||||
incr: Upgrade.incrementProgress,
|
||||
script: scriptExport,
|
||||
@@ -177,9 +178,11 @@ Upgrade.incrementProgress = function (value) {
|
||||
}
|
||||
|
||||
this.current += value || 1;
|
||||
this.counter += value || 1;
|
||||
const step = (this.total ? Math.floor(this.total / 100) : 100);
|
||||
|
||||
// Redraw the progress bar every 100 units
|
||||
if (this.current % (this.total ? Math.floor(this.total / 100) : 100) === 0 || this.current === this.total) {
|
||||
if (this.counter > step || this.current >= this.total) {
|
||||
this.counter -= step;
|
||||
var percentage = 0;
|
||||
var filled = 0;
|
||||
var unfilled = 15;
|
||||
|
||||
Reference in New Issue
Block a user