mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Update frontend consumer status phases
This commit is contained in:
parent
d376f9e7a3
commit
0beb9f0b5f
4 changed files with 54 additions and 19 deletions
|
|
@ -84,7 +84,7 @@ describe('UploadFileWidgetComponent', () => {
|
|||
|
||||
it('should change color by status phase', () => {
|
||||
const processingStatus = new FileStatus()
|
||||
processingStatus.phase = FileStatusPhase.PROCESSING
|
||||
processingStatus.phase = FileStatusPhase.WORKING
|
||||
expect(component.getStatusColor(processingStatus)).toEqual('primary')
|
||||
const failedStatus = new FileStatus()
|
||||
failedStatus.phase = FileStatusPhase.FAILED
|
||||
|
|
@ -134,7 +134,7 @@ function mockConsumerStatuses(consumerStatusService) {
|
|||
switch (phase) {
|
||||
case FileStatusPhase.FAILED:
|
||||
return [new FileStatus()]
|
||||
case FileStatusPhase.PROCESSING:
|
||||
case FileStatusPhase.WORKING:
|
||||
return [new FileStatus(), new FileStatus()]
|
||||
case FileStatusPhase.STARTED:
|
||||
return [new FileStatus(), new FileStatus(), new FileStatus()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue