Add more state info to JobsPage

This commit is contained in:
Anton Thomasson 2020-01-03 14:13:23 +01:00
parent 2b32999f6e
commit 73da46f22a

View file

@ -69,7 +69,9 @@ Page {
Label {
font.pixelSize: Theme.fontSizeTiny
color: Theme.secondaryColor
text: Utils.ippName("job-state", printer.jobs[index]["job-state"].value)
property var msg: printer.jobs[index]["job-printer-state-message"] && printer.jobs[index]["job-printer-state-message"].value != ""
? " ("+printer.jobs[index]["job-printer-state-message"].value+")" : ""
text: Utils.ippName("job-state", printer.jobs[index]["job-state"].value)+msg
}
}