Don't consider reports to be warnings

This commit is contained in:
Anton Thomasson 2020-10-11 16:13:14 +02:00
parent 0ff8b6e2e2
commit 2604c65466

View file

@ -324,9 +324,14 @@ function isWaringState(printer)
{
return true;
}
else if(!has(printer.attrs["printer-state-reasons"].value, "none"))
for(var i in printer.attrs["printer-state-reasons"].value)
{
return true;
var value = printer.attrs["printer-state-reasons"].value[i];
if(value != "none" && !(endsWith("-report", value)))
{
return true;
}
}
return false;
}