js: Allow to suspend auto refresh for individual containers

This commit is contained in:
Johannes Meyer 2021-02-25 09:10:59 +01:00
parent 4366f93127
commit 1f29c4a2fe
1 changed files with 5 additions and 1 deletions

View File

@ -354,7 +354,7 @@
},
filterAutorefreshingContainers: function () {
return $(this).data('icingaRefresh') > 0;
return $(this).data('icingaRefresh') > 0 && ! $(this).is('[data-suspend-autorefresh]');
},
autorefresh: function () {
@ -659,6 +659,10 @@
}
}
if (req.autorefresh && req.$target.is('[data-suspend-autorefresh]')) {
return;
}
this.icinga.logger.debug(
'Got response for ', req.$target, ', URL was ' + req.url
);