MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / setProgress

Function setProgress

runtime/src/js/progress.js:25–32  ·  view source on GitHub ↗
(progress)

Source from the content-addressed store, hash-verified

23
24// Function to set progress bar
25export function setProgress(progress) {
26 const progressValue = parseFloat(progress);
27 if (this && !isNaN(progressValue) && progressValue >= 0 && progressValue <= 1) {
28 this.setProgressBar(progressValue);
29 } else if (this && progress === -1) {
30 this.setProgressBar(-1);
31 }
32}
33
34// Function to clear progress
35export function clearProgress() {

Callers 1

AIReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected