improved the logic of the "dismiss completed" button

This commit is contained in:
jonaswinkler
2021-01-27 18:34:59 +01:00
parent eaeed95ed4
commit dcf1698828
4 changed files with 11 additions and 13 deletions

View File

@@ -97,6 +97,10 @@ export class ConsumerStatusService {
}
}
getConsumerStatusCompleted() {
return this.consumerStatus.filter(s => s.phase == FileStatusPhase.FAILED || s.phase == FileStatusPhase.SUCCESS)
}
connect() {
this.disconnect()
this.statusWebSocked = new WebSocket("ws://localhost:8000/ws/status/");