Handle printer-state-reasons severity

This commit is contained in:
Anton Thomasson 2020-10-04 14:36:01 +02:00
parent cdcc7dc520
commit 4d0eeb35c2

View file

@ -120,6 +120,18 @@ function ippName(name, value)
{ {
return printerStateReasons[value]; return printerStateReasons[value];
} }
else if (endsWith("-report", value))
{
return ippName(name, value.substr(0, value.length-"-report".length))+" (Report)"
}
else if (endsWith("-warning", value))
{
return ippName(name, value.substr(0, value.length-"-warning".length))+" (Warning)"
}
else if (endsWith("-error", value))
{
return ippName(name, value.substr(0, value.length-"-error".length))+" (Error)"
}
else else
{ {
return value; return value;