(job)
| 404 | } |
| 405 | |
| 406 | function buildSub(job) { |
| 407 | if (job.subText) return job.subText; |
| 408 | const hasSource = typeof job.source === 'string' && job.source.trim() !== ''; |
| 409 | const hasDestination = typeof job.destination === 'string' && job.destination.trim() !== ''; |
| 410 | if (!hasSource && !hasDestination) return ''; |
| 411 | |
| 412 | const source = formatLocationLabel(job.source); |
| 413 | const destination = formatLocationLabel(job.destination); |
| 414 | if (hasSource && hasDestination) { |
| 415 | if (source === destination) return ''; |
| 416 | return `${source} -> ${destination}`; |
| 417 | } |
| 418 | if (hasDestination) return `To ${destination}`; |
| 419 | return `From ${source}`; |
| 420 | } |
| 421 | |
| 422 | function setMinimized(min) { |
| 423 | _minimized = !!min; |
no test coverage detected