]> git.proxmox.com Git - mirror_novnc.git/commit
Ensure warning status timeouts are honored
authorSamuel Mannehed <samuel@cendio.se>
Mon, 25 Nov 2019 15:38:03 +0000 (16:38 +0100)
committerSamuel Mannehed <samuel@cendio.se>
Mon, 25 Nov 2019 15:38:03 +0000 (16:38 +0100)
commitafa1f8a2ab541d95de7ca2ae19d4f88b1a36e627
treee62389503820c7ec3facf74bdb07da8106b8f049
parent686c8d259a14e2194a6091f0b4360799bf30598e
Ensure warning status timeouts are honored

When showing a new status popup we want to set a timer for how long to
show it. In cases where we show many statuses in a fast succession we
need to remove any running timeouts when showing a new one.

There are exceptions when new statuses won't be shown, and thats if a
more severe status is already showing, i.e and error or a warning.

Warnings can still have timeouts. There was a bug that occured when we
tried to show a normal status while a warning was showing. The bug
caused the warning status timeout to be removed even if the normal
status was never shown. We should only remove running timeouts if we're
actually going to show a new status.
app/ui.js