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,15 +1058,20 @@
|
|||||||
errorThrown + ':',
|
errorThrown + ':',
|
||||||
$(req.responseText).text().replace(/\s+/g, ' ').slice(0, 100)
|
$(req.responseText).text().replace(/\s+/g, ' ').slice(0, 100)
|
||||||
);
|
);
|
||||||
this.renderContentToContainer(
|
|
||||||
req.responseText,
|
if (req.status === 401) {
|
||||||
req.$target,
|
window.location.reload();
|
||||||
req.action,
|
} else {
|
||||||
req.autorefresh,
|
this.renderContentToContainer(
|
||||||
undefined,
|
req.responseText,
|
||||||
req.autosubmit,
|
req.$target,
|
||||||
req.scripted
|
req.action,
|
||||||
);
|
req.autorefresh,
|
||||||
|
undefined,
|
||||||
|
req.autosubmit,
|
||||||
|
req.scripted
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (errorThrown === 'abort') {
|
if (errorThrown === 'abort') {
|
||||||
this.icinga.logger.debug(
|
this.icinga.logger.debug(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user