|
|
|
@ -83,7 +83,7 @@ export default function Processes() { |
|
|
|
|
let canPause = (process: ProcessInterface) => !isFinished(process) && process.progress && !process.pausedAt |
|
|
|
|
let canRepeat = (process: ProcessInterface) => isFinished(process) |
|
|
|
|
let canStop = (process: ProcessInterface) => !isFinished(process) && process.progress |
|
|
|
|
let canKill = (process: ProcessInterface) => !isFinished(process) |
|
|
|
|
let canKill = (process: ProcessInterface) => !isFinished(process) && process.startedAt |
|
|
|
|
let progress = (progress: ProcessProgressInterface) => progress.progress / progress.total * 100 |
|
|
|
|
|
|
|
|
|
let status = (process: ProcessInterface): Status => { |
|
|
|
|