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,10 +324,15 @@ 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)
{
var value = printer.attrs["printer-state-reasons"].value[i];
if(value != "none" && !(endsWith("-report", value)))
{
return true;
}
}
return false;
}