added a status summary line

This commit is contained in:
jonaswinkler
2021-01-28 10:54:56 +01:00
parent 368a5f8047
commit d154dfd35e
4 changed files with 64 additions and 13 deletions

View File

@@ -90,13 +90,17 @@ export class ConsumerStatusService {
}
getConsumerStatus(phase?: FileStatusPhase) {
if (phase) {
if (phase != null) {
return this.consumerStatus.filter(s => s.phase == phase)
} else {
return this.consumerStatus
}
}
getConsumerStatusNotCompleted() {
return this.consumerStatus.filter(s => s.phase < FileStatusPhase.SUCCESS)
}
getConsumerStatusCompleted() {
return this.consumerStatus.filter(s => s.phase == FileStatusPhase.FAILED || s.phase == FileStatusPhase.SUCCESS)
}