js: Transmit `X-Icinga-Autorefresh=1` with autorefresh requests

This commit is contained in:
Johannes Meyer 2020-07-02 13:47:06 +02:00
parent 2c7b2330a7
commit 3e29fba052
1 changed files with 4 additions and 0 deletions

View File

@ -245,6 +245,10 @@
// Not sure whether we need this Accept-header
var headers = { 'X-Icinga-Accept': 'text/html' };
if (autorefresh) {
headers['X-Icinga-Autorefresh'] = '1';
}
// Ask for a new window id in case we don't already have one
if (this.icinga.ui.hasWindowId()) {
var windowId = this.icinga.ui.getWindowId();