MCPcopy Create free account
hub / github.com/error311/FileRise / setProgress

Function setProgress

public/js/sharedFolderView.js:199–209  ·  view source on GitHub ↗
(pct)

Source from the content-addressed store, hash-verified

197 };
198
199 const setProgress = (pct) => {
200 if (progressWrap) progressWrap.classList.remove('is-indeterminate');
201 if (progressFill) progressFill.style.width = pct + '%';
202 if (progressText) {
203 progressText.textContent = tx(
204 'share_uploading_progress',
205 { pct },
206 'Uploading... ' + pct + '%'
207 );
208 }
209 };
210
211 const setError = (msg) => {
212 if (!progressWrap) return;

Callers 1

Calls 1

txFunction · 0.70

Tested by

no test coverage detected