New: Queued Task/Command List View

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
Qstick
2018-08-30 23:07:50 -04:00
parent 9a1660da51
commit 60bb0ac063
31 changed files with 897 additions and 287 deletions

View File

@@ -3,7 +3,7 @@ function isCommandComplete(command) {
return false;
}
return command.state === 'complete';
return command.status === 'complete';
}
export default isCommandComplete;

View File

@@ -3,7 +3,7 @@ function isCommandExecuting(command) {
return false;
}
return command.state === 'queued' || command.state === 'started';
return command.status === 'queued' || command.status === 'started';
}
export default isCommandExecuting;

View File

@@ -3,10 +3,10 @@ function isCommandFailed(command) {
return false;
}
return command.state === 'failed' ||
command.state === 'aborted' ||
command.state === 'cancelled' ||
command.state === 'orphaned';
return command.status === 'failed' ||
command.status === 'aborted' ||
command.status === 'cancelled' ||
command.status === 'orphaned';
}
export default isCommandFailed;