mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
Icinga.Loader#onFailure(): on 401, reload the whole page
instead of rendering 401 responses to all containers. (cherry picked from commit 83459934807ee72b4a5c2c0336b7909871d875ba)
This commit is contained in:
parent
d3331dd300
commit
f8b82d9472
@ -1058,6 +1058,10 @@
|
||||
errorThrown + ':',
|
||||
$(req.responseText).text().replace(/\s+/g, ' ').slice(0, 100)
|
||||
);
|
||||
|
||||
if (req.status === 401) {
|
||||
window.location.reload();
|
||||
} else {
|
||||
this.renderContentToContainer(
|
||||
req.responseText,
|
||||
req.$target,
|
||||
@ -1067,6 +1071,7 @@
|
||||
req.autosubmit,
|
||||
req.scripted
|
||||
);
|
||||
}
|
||||
} else {
|
||||
if (errorThrown === 'abort') {
|
||||
this.icinga.logger.debug(
|
||||
|
Loading…
x
Reference in New Issue
Block a user