Show print job context menu if state == "error"

Contributes to CL-1175
This commit is contained in:
Ian Paschal 2019-01-24 09:52:56 +01:00
parent 5d2a914180
commit 673734ee12
3 changed files with 11 additions and 3 deletions

View file

@ -179,7 +179,7 @@ Item
if (!printer || !printer.activePrintJob) {
return false
}
var states = ["queued", "sent_to_printer", "pre_print", "printing", "pausing", "paused", "resuming"]
var states = ["queued", "error", "sent_to_printer", "pre_print", "printing", "pausing", "paused", "resuming"]
return states.indexOf(printer.activePrintJob.state) !== -1
}
}