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

Function getJobStateLabel

public/js/transferProgress.js:381–390  ·  view source on GitHub ↗
(job)

Source from the content-addressed store, hash-verified

379}
380
381function getJobStateLabel(job) {
382 const state = String(job.state || '').toLowerCase();
383 if (state === 'queued') return 'Queued';
384 if (state === 'cancel_requested' || state === 'cancelling') return 'Cancelling';
385 if (state === 'finishing') return 'Finalizing';
386 if (state === 'done') return 'Done';
387 if (state === 'error' || state === 'failed') return 'Failed';
388 if (state === 'cancelled') return 'Cancelled';
389 return 'Running';
390}
391
392function buildTitle(job) {
393 if (job.title) return job.title;

Callers 1

renderJobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected